Re: [R] Install package automatically if not there?

From: David Winsemius <>
Date: Thu, 24 Jun 2010 15:31:31 -0400

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?


______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 24 Jun 2010 - 19:34:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Jun 2010 - 19:40:35 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive