[R] how do I install add on packages?

Roger Peng rpeng at stat.ucla.edu
Tue Nov 13 05:25:55 CET 2001


At the shell prompt (i.e. NOT in R), you should be able to type:

R CMD INSTALL RMySQL_0.4-3.tar.gz

and R will try to install the package in the system library directory.  If
you don't want to (or don't have permission to) install the package in the
system directory, you can specify a different directory with the -l flag,
so:

R CMD INSTALL -l ~/myLibs RMySQL_0.4-3.tar.gz

I'm not sure why help.search() only works when yo log on as root....

-roger
_____________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu

On Mon, 12 Nov 2001, Jeff D. Hamann wrote:

> I'm having some trouble installing the add on packages.
> 
> I would like to install the RMySQL_0.4-3.tar.gz add on package. I've
> downloaded it and unzipped the package. The INSTALL file says
> 
> R CMD INSTALL [-l<alternate-dir>] RMySQL_<version>.tar.gz
> does this mean in the R system enter the following?
> > INSTALL -l /root/RMySQL_0.4-3.tar.gz    (?)
> when I do this I get...
> Error: couldn't find function "INSTALL"
> 
> so I them typed help.search("install")
> 
> and got
> 
> remove.packages(base)
> update.packages(base)
> INSTALL(base)
> 
> what's base? And why is the help.search() working when I log on as root. It
> doesn't work when  I log on as a regular user. I'm using FreeBSD 4.4.
> 
> Jeff.
> 
> 
> 
> 
> Jeff D. Hamann
> Hamann, Donald and Associates
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> Bus. 541-753-7333
> Cell. 541-740-5988
> jeff_hamann at hamanndonald.com
> www.hamanndonald.com
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list