[R] .Library in R 2.12.2 for windows
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Mar 11 07:43:36 CET 2011
.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
More information about the R-help
mailing list