Hi, I have R installed in a system, but I need to install some packages as normal user on linux. Is possible to R use others library to get packages or one by one? Ex. I have some main package installed in /usr/lib/R/library And now I need to install my own packages in ~/R/library And I need to use the packages in main library and in my own library. Its possible? Thanks Ronaldo -- Problemas todos tem. Ate o Frankstein. -- | //|\\ [*****************************][*******************] || ( ? ? ) [Ronaldo Reis J?nior ][PentiumIII-600 ] | V [ESALQ/USP-Entomologia, CP-09 ][HD: 30 + 10 Gb ] || / l \ [13418-900 Piracicaba - SP ][RAM: 128 Mb ] | /(lin)\ [Fone: 19-429-4199 r.229 ][Video: SiS620-8Mb ] ||/(linux)\ [chrysopa at insecta.ufv.br ][Modem: Pctel-onboar] |/ (linux) \[ICQ#: 5692561 ][Kernel: 2.4.18 ] || ( x ) [*****************************][*******************] ||| _/ \_Powered by Gnu/Debian Woody D+:) | Lxuser#: 205366 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
ripley@stats.ox.ac.uk
2002-Nov-20 18:53 UTC
[R] Using private libraries (was R and default library)
There's an example in ?Startup with exactly this. (If you don't see the point of R_LIBS, search for it in ?library.) On Wed, 20 Nov 2002, Ronaldo Reis Jr. wrote:> Hi, > I have R installed in a system, but I need to install some packages as normal > user on linux. Is possible to R use others library to get packages or one by > one? > > Ex. > > I have some main package installed in /usr/lib/R/library > > And now I need to install my own packages in ~/R/library > > And I need to use the packages in main library and in my own library. > > Its possible?-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
(Assuming that you are on Unix/Linux,) You can install libraries from source to anywhere you want by using the -l flag to R INSTALL, e.g. R INSTALL -l ~/R/library <package>.tar.gz You can load them inside R by library(package, lib.loc = "~/R/library") (If you want to do this often, you might want to have a .Renviron file under ~ with the line R_LIBS=~/R/library in which case library() will search for a package there before looking in the system wide location.) On Wednesday 20 November 2002 11:39 am, Ronaldo Reis Jr. wrote:> Hi, > I have R installed in a system, but I need to install some packages as > normal user on linux. Is possible to R use others library to get packages > or one by one? > > Ex. > > I have some main package installed in /usr/lib/R/library > > And now I need to install my own packages in ~/R/library > > And I need to use the packages in main library and in my own library. > > Its possible? > Thanks > Ronaldo-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._