问题
Is there a build of rCharts available for R 3.1.1?
I tried 2 methods and both failed:
Method 1:
devtools::install_github('ramnathv/rCharts')
Downloading github repo ramnathv/rCharts@master
Error in function (type, msg, asError = TRUE) : couldn't connect to host
Method 2: (Manually downloading the package and running install.packages )
install.packages("~/R/win-library/rCharts-master.zip", repos = NULL)
Warning in install.packages :
package ‘~/R/win-library/rCharts-master.zip’ is not available (for R version 3.1.1)
Edit: I tried:
library(downloader)
download("https://github.com/ramnathv/rCharts/archive/master.tar.gz", "rCharts.tar.gz")
install.packages("rCharts.tar.gz", repos = NULL, type = "source")
And it works now! Thanks!
来源:https://stackoverflow.com/questions/26517961/error-on-installing-rcharts-in-r-3-1-1-windows