[R] Failure loading library into second R 2.3.1 session on Windows XP
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Dec 30 08:16:35 CET 2006
On Fri, 29 Dec 2006, Uwe Ligges wrote:
> You can only expect that update / reinstall a ***package*** works if you
> have not yet loaded it into your R session.
> Hence close R, start it without loading the relevant package and then
> update/reinstall.
And for the record, this is answered in rw-FAQ Q4.8.
>
> Best,
> Uwe Ligges
>
>
> Talbot Katz wrote:
>> Hi.
>>
>> I am using R 2.3.1 on Windows XP. I had installed a library package into my
>> first session and wanted the same package in my second session, so I went
>> out to the CRAN mirror and tried to install the package, and got the
>> following message:
>>
>> *********************************************************************
>>
>>> utils:::menuInstallPkgs()
>> trying URL
>> 'http://cran.ssds.ucdavis.edu/bin/windows/contrib/2.3/corpcor_1.4.4.zip'
>> Content type 'application/zip' length 133068 bytes
>> opened URL
>> downloaded 129Kb
>>
>> package 'corpcor' successfully unpacked and MD5 sums checked
>> Warning: cannot remove prior installation of package 'corpcor'
>>
>> The downloaded packages are in
>> C:\Documents and Settings\Talbot\Local
>> Settings\Temp\RtmplCxarb\downloaded_packages
>> updating HTML package descriptions
>>> library(corpcor)
>> Error in library(corpcor) : there is no package called 'corpcor'
>>
>> *********************************************************************
>>
>>
>> After rebooting my machine, I dug into this a little further. Upon
>> installing a package from a CRAN mirror, it seems to stay on my hard drive,
>> and I can load it in subsequent sessions from the "Load package..." menu
>> without going back to get it from a CRAN mirror. However, if I do happen to
>> retrieve it again from a CRAN mirror, it appears that may corrupt the
>> version that was saved, and it no longer will be available from the "Load
>> package..." menu. A reboot and re-retrieval of the package makes it
>> available again; I don't know whether there's any less drastic solution.
>>
>> This behavior doesn't occur with every package, but I have experienced it
>> with two different packages (corpcor and copula), so there seems to be
>> something going on. I didn't see anything in the FAQ page about this, I
>> wonder if anyone can tell me more about this issue.
>>
>> Thanks!
>>
>>
>> -- TMK --
>> 212-460-5430 home
>> 917-656-5351 cell
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch 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.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
--
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