[R] Preventing repeated package installation, or pre installing packages

Larry Martell larry.martell at gmail.com
Fri Dec 8 02:30:09 CET 2017

On Wed, Nov 29, 2017 at 11:20 AM, Thierry Onkelinx
<thierry.onkelinx at inbo.be> wrote:
> Dear Larry,
> Have a look at https://github.com/inbo/rstable That is a dockerfile
> with a stable version of R and a set of packages.

Thank you very much. This is very useful to me.

> 2017-11-29 15:28 GMT+01:00 Larry Martell <larry.martell at gmail.com>:
>> I have a R script that I call from python using rpy2. It uses dplyr, doBy,
>> and ggplot2. The script has install.packages commands for these 3 packages.
>> Even thought the packages are already installed it still downloads,
>> builds, and installs them, which is very time consuming. Is there a way to
>> have it only do the install if the package is not already installed?
>> Also, I run in a docker container, so after the container is instantiated
>> the packages are not there the first time the script runs. Is there a way
>> to pre load the packages, in which case I would not need the
>> install.packages commands for these packages and my above question would
>> become moot.
>>         [[alternative HTML version deleted]]
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list