Direct use of .lib.loc was deprecated in 1.6.0. Use .libPaths() instead.
.Library is looked for package:base, and your assigning a copy in
.GlobalEnv will make no difference.
On Thu, 26 Jun 2003, R. Heberto Ghezzo wrote:
> Hello.
> I am using R 1.7.1 just downloaded on Win98. With the old 1.6.2 I had
> modified the etc/Rprofile file as
>
> etc/Rprofile
> # Things you might want to change
> # options(width=80)
> # options(papersize="a4")
> # options(editor="notepad")
> # options(pager="internal")
> # to prefer Compiled HTML help
> options(chmhelp=TRUE)
> # to prefer HTML help
> # options(htmlhelp=TRUE)
> # to prefer Windows help
> # options(winhelp=TRUE)
>
> .lib.loc <-
c("c:/R/R_cran/library","c:/R/R_w/library",.Library)
> ------------------
> and it normally worked well, calling library() gives me a list of all
> packages in the 3 sites
> but in R 1.7.1 on Win98
>
> > .lib.loc
> [1] "c:/R/R_cran/library" "c:/R/R_w/library"
"C:/R/RW1071/library"
> > .Library
> [1] "C:/R/RW1071/library"
> > library()
> only lists C:/R/RW1071/library
> > .Library <- .lib.loc
> > library()
> same result, does not add the other libraries
>
> if I return Rprofile to its original and instead create and
> Renviron.site as in the FAQ
>
> etc/Renviron.site
> R_LIBS = C:/R_CRAN/Library;C:/R_W/Library
>
>
> > .Library
> [1] "C:/R/RW1071/library"
> In addition: Warning messages:
> 1: list.files: C:/R_CRAN/Library is not a readable directory
> 2: list.files: C:/R_W/Library is not a readable directory
> >
> Well I used them before, what should I do now to make them readable?
You didn't spell them that way before: I am not sure if that makes a
difference?
--
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