Re: [R] how to remove paths from where library() looks for packages

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Thu, 27 Dec 2007 08:23:07 -0200

Perhaps this:

.libPaths(unique(installed.packages()[,2]))

On 25/12/2007, Lynd Bacon <lbacon_at_lba.com> wrote:
> Greetings. My current installation of R 2.6.1 on Unbuntu 7.10 ("Gutsy")
> is looking for packages in a directory that doesn't contain any:
>
> > library()
> Warning message:
> In library() : library "/usr/lib/R/site-library" contains no packages
>
> > .libPaths()
> [1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library"
> [3] "/usr/lib/R/library"
>
> I'd like to eliminate the path to the empty directory so I don't get
> this vexsome warning message. Any and all suggestions will be greatly
> appreciated!
>
> Cheers,
>
> Lynd
>
> --
> _________________________________________
> Lynd Bacon
> Woodside CA USA GMT-08:00
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 27 Dec 2007 - 10:25:47 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 27 Dec 2007 - 14:00:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.