Error on installing rCharts in R 3.1.1 (Windows)

两盒软妹~` 提交于 2019-12-24 02:49:31

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!