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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
The result of help.search("install") is: remove.packages(base) update.packages(base) INSTALL(base) Jeff D. Hamann <jeff_hamann at hamanndonald.com> wrote:> what's base?In each case, the function was found in the package called "base". If you type R> search() R> ls("package:base") you'll see "base" is last on your search path, and it contains all the core R functions. One cool thing about help.search() is that it searches all packages in your library, even ones that aren't attached, so the name in parentheses may be critical to finding the function. Example: R> help.search("predict.nlme") ... predict.nlme(nlme) Predictions from an nlme Object R> find("predict.nlme") character(0) R> require(nlme) ... R> find("predict.nlme") [1] "package:nlme" -- David Brahm (brahm at alum.mit.edu) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._