[R] Install package automatically if not there?

David Winsemius dwinsemius at comcast.net
Thu Jun 24 21:31:31 CEST 2010


On Jun 24, 2010, at 3:25 PM, Ralf B wrote:

> 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...

Puzzled. When you went to the help page for install.packages, what did  
you think the link to installed.packages was offering?

-- 
David.



More information about the R-help mailing list