[R] Setting default path to library

Steve_Friedman at nps.gov Steve_Friedman at nps.gov
Mon Nov 29 16:32:06 CET 2010


Hello

I recently upgraded from 2.11.1 to 2.12.0 on a windows machine. When I
launch R  via TINN - R,(2.3.7.0)  most things appear correct. The exception
is the path to the library.

I store all of the packages in C:\Program_Files \R\R-2.12.0\library

Last week when I upgraded I rec'd an error:
Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())))  :
 there is no package called "cluster"

Well the cluster package was there, but I installed a new version from a
local *.zip file to be sure, and things worked fine.

This morning, when I launched R again, I rec'd the same error message, also
indicating that the package "Hmisc" could not be loaded.  It too is in the
library folder.

I think the system is searching for some packages in
C:\\Program_Files\R\R-2.12.0\bin\i386

Why would it do that and what is the appropriate commands to tell R where
to look for installed packages?
I've search the archive and have not found a clear understandable answer.

As always, Thanks for the assistance

Steve




Steve Friedman Ph. D.
Ecologist  / Spatial Statistical Analyst
Everglades and Dry Tortugas National Park
950 N Krome Ave (3rd Floor)
Homestead, Florida 33034

Steve_Friedman at nps.gov
Office (305) 224 - 4282
Fax     (305) 224 - 4147



More information about the R-help mailing list