Re: [R] .Library in R 2.12.2 for windows

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 11 Mar 2011 06:43:36 +0000 (GMT)

.libPaths() (on the same help page as .Library): and nothing has changed since R 2.11.1.

However, to find a package, use .find.package, and your package should almost certainly be using system.file(package='pkgname').

On Thu, 10 Mar 2011, Oxxx wrote:

> I installed a custom package which needs to know its own location on the
> disk. (It runs an executable that is included in the package.) In version
> 2.11.1 the .Library command gave me the necessary information. It returned
> the path C:\Program Files\R\R-2.11.1\library. I have noticed that in the
> 2.12.2 newly installed libraries are installed to something like
> C:\Documents and Settings\user\My Documents\R\win-library\2.12., but he
> .Library still points to C:\Program Files\R\R-2.11.1\library. Is there some
> function to return the path C:\Documents and Settings\user\My
> Documents\R\win-library\2.12? Thanks for any help that can be provided!

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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 Fri 11 Mar 2011 - 06:56:03 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 Fri 11 Mar 2011 - 14:40: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.

list of date sections of archive