[英]Install R packages from linux command line
I am using AWS EC2 (ubuntu 12.04) to run some simulations in R. I have a scripts that boots up the instance and updates and upgrades and installs r-base r-base-dev我正在使用 AWS EC2 (ubuntu 12.04) 在 R 中运行一些模拟。我有一个脚本可以启动实例并更新和升级并安装 r-base r-base-dev
I would like to add a command to the startup (bash) script that would install the doMC package.我想向将安装 doMC 包的启动 (bash) 脚本添加一个命令。 My instance is brand new each time I run the machine ( no R repos, no R library is defined ) and I would like to be able to install the doMC package right after installing r-base.每次运行机器时,我的实例都是全新的(没有 R 存储库,没有定义 R 库),我希望能够在安装 r-base 后立即安装 doMC 包。
Is this possible?这可能吗?
Of course -- sudo apt-get install r-cran-domc
.当然—— sudo apt-get install r-cran-domc
。 So install this just how you install R itself.因此,请按照安装 R 本身的方式安装它。
BTW r-base
already implied r-base-dev
.顺便说一句r-base
已经暗示r-base-dev
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.