I am using Win64 and cannot install the "brilliant" package on R. When I try to install the following message, it fills up. Can someone please put me on the right track or am I missing something really stupid here?
> install.packages("shiny")
Installing package into βC:/Users/Ayan/Documents/R/win-library/3.0β
(as βlibβ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning: unable to access index for repository http:
Warning: unable to access index for repository http:
Warning messages:
1: In open.connection(con, "r") : unable to resolve 'cran.r-project.org'
2: package βshinyβ is not available (for R version 3.0.2)
I tried using India, Cloud (0) as a CRAN mirror
contents of ui.R file:
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Hello Shiny!"),
sidebarPanel(
sliderInput("obs",
"Number of observations:",
min = 1,
max = 1000,
value = 500)
),
mainPanel(
plotOutput("distPlot")
)
))
contents of server.R file:
library(shiny)
shinyServer(function(input, output) {
output$distPlot <- renderPlot({
dist <- rnorm(input$obs)
hist(dist)
})
})
Also I ran into the problem of installing holdOut package for classification problem. Here is what he shows:
> install.packages("holdOut")
Installing package into βC:/Users/Ayan/Documents/R/win-library/3.0β
(as βlibβ is unspecified)
Warning in install.packages :
package βholdOutβ is not available (for R version 3.0.2)
Are these 2 issues related?
source
share