[R] Problem with .libPaths

Heberto Ghezzo heberto.ghezzo at mcgill.ca
Mon Jan 21 15:04:13 CET 2002


Hello, I am on win98 with R1.4 from BDR
I have a directory structure like this
c:\R\RW1040
c:\R\R_CRAN\Library
C:\R\R_SRC\Library
so Y put the new versions of R in RW... and I download the packages from
CRAN into R=R_CRAN\library so they do not change from R version to
version, R\R_SRC is for packages from other places than CRAN or for my
own things
Now if when R starts I say
> library()
I get the list of packages in RW1040\library. If I add
> .libPaths("c:/r/r_cran/library")
[1] "c:/r/r_cran/library" "C:/R/RW1040/library"
> library()
Error in cbind(unlist(lapply(x, "[[", 1)), unlist(lapply(x, function(t)
paste(t[-c(1,  :
        attempt to set an attribute on NULL
>
and any attempt to load a package from R_CRAN fails. Before I used to
have a lib.loc line in RW...\etc\R.profile where i set the paths to
r\r_cran\library and r\r_src\library, what is the procedure now? If I
try to use .lib.loc<-c('''') I get the same answer.
Thanks for any help.
--
R. Heberto Ghezzo Ph.D.
Meakins-Christie Labs
McGill University
Montreal  -  Canada


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list