简体   繁体   中英

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

I would like to add a command to the startup (bash) script that would install the doMC package. 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.

Is this possible?

Of course -- sudo apt-get install r-cran-domc . So install this just how you install R itself.

BTW r-base already implied r-base-dev .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM