[R] Install package automatically if not there?

Bert Gunter gunter.berton at gene.com
Thu Jun 24 21:35:18 CEST 2010


You mean if a "package" has been installed?! (big difference)

?installed.packages  or ?.packages with all.available = TRUE
?install.packages



Bert Gunter
Genentech Nonclinical Biostatistics
 
 
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Ralf B
Sent: Thursday, June 24, 2010 12:26 PM
To: r-help at r-project.org
Subject: [R] Install package automatically if not there?

Hi fans,

is it possible for a script to check if a library has been installed?
I want to automatically install it if it is missing to avoid scripts
to crash when running on a new machine...

Ralf

______________________________________________
R-help at r-project.org mailing list
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