[R] [DKIM] Batch Installer for R [SEC=UNCLASSIFIED]
Jin.Li at ga.gov.au
Fri Apr 1 05:43:29 CEST 2016
Here is something I acquired from this mailing list some years ago. It works well for me:
#---run in previous version (e.g. R 3.1.0)
packages <- installed.packages()[,"Package"]
#---run in new version
for (p in setdiff(packages, installed.packages()[,"Package"]))
Hope this helps.
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Tobias Knuth
Sent: Friday, 1 April 2016 12:05 AM
To: r-help at r-project.org
Subject: [DKIM] [R] Batch Installer for R
in Python, you can run pip install -r filename to install all packages listed in the file. Is there something similar to R? If not, isn't it quite easy to write?
For me, it would be much easier to work on projects with other people if I could just install all dependencies with one line in a generalised manner.
Did anybody try something like that before me?
[[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.
Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks.
More information about the R-help