Hello I use the function .libPaths()> .libPaths()[1] "/usr/local/lib/R/library"> .libPaths(c("/usr/local/lib/myRlib","/usr/local/lib/library")) > .libPaths()[1] "/usr/local/lib/R/library" but it simply does not pick up the new path. Can anybody help? (The problem originates from the inability to install packages into /usr/local/lib/R/library, running R under linux suse 9.3) ---------------------------- Sebastian Leuzinger
On Tue, 26 Apr 2005, Sebastian Leuzinger wrote:> Hello > I use the function .libPaths() > >> .libPaths() > [1] "/usr/local/lib/R/library" >> .libPaths(c("/usr/local/lib/myRlib","/usr/local/lib/library")) >> .libPaths() > [1] "/usr/local/lib/R/library" > > but it simply does not pick up the new path. Can anybody help? > (The problem originates from the inability to install packages > into /usr/local/lib/R/library, running R under linux suse 9.3) >It works for me as long as the paths actually exist -- it didn't work with your example because I don't have /usr/local/lib/myRlib or /usr/local/lib/library. -thomas
Did you check to make sure the new path exists? -roger Sebastian Leuzinger wrote:> Hello > I use the function .libPaths() > > >>.libPaths() > > [1] "/usr/local/lib/R/library" > >>.libPaths(c("/usr/local/lib/myRlib","/usr/local/lib/library")) >>.libPaths() > > [1] "/usr/local/lib/R/library" > > but it simply does not pick up the new path. Can anybody help? > (The problem originates from the inability to install packages > into /usr/local/lib/R/library, running R under linux suse 9.3) > > ---------------------------- > Sebastian Leuzinger > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/