问题描述
我最近,成立了一个AWS accountand我在我要求
I have recently, set up an AWS accountand am in the process of uploading R packages I require
这个过程运行顺畅使用命令,例如与CRAN软件包
The process runs smoothly with CRAN packages using the command e.g.
sudo su c "R e \"install.packages('ggplot2', repos='http://cran.rstudio.com/')\""
有关非CRAN包,我从这个来源一些帮助 https://github.com/hadley/devtools/issues/414 并试图
For non-CRAN packages, I got some help from this sourcehttps://github.com/hadley/devtools/issues/414 and tried
Rscript -e 'library(devtools); library(methods); install_github(commandArgs(TRUE))' "ramnathv/rCharts"
该压缩包(和其他人在github)下载,但后来我得到的错误
The zipped package (and others on github ) download but then I get the error
'lib="/usr/local/lib/R/site-library"' is not writable .
尽管这是哪里的R程序包被写入
although that is where the R packages were written to
有没有人成功地实现这一进程,并可以给我的解决方案TX
Has anyone successfully achieved this process and could give me the solutionTx
推荐答案
它看起来像你只需要须藤
来安装到该目录中。你可以尝试
It looks like you just need sudo
to install to that directory. You could try
sudo Rscript -e 'library(devtools); library(methods); install_github(commandArgs(TRUE))' "ramnathv/rCharts"
或
git clone https://github.com/ramnathv/rCharts.git
sudo R CMD INSTALL rCharts
这篇关于我如何安装非CRAN R封装到AWS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!