我如何安装非CRAN R封装到AWS?CRAN、AWS

2023-09-12 00:04:27 作者:聆厛ˋ彼岸花开

我最近,成立了一个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 source https://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 solution Tx

推荐答案

它看起来像你只需要须藤来安装到该目录中。你可以尝试

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
 
精彩推荐
图片推荐