On Mar 25, 2013, at 9:09 AM, C Lin wrote:
>
> Anyone knows what does this error means? > library(RcppClassic) Error in
gzfile(file, "rb") : cannot open the connection I thought I installed
the package successfully: > install.packages('RcppClassic')
Installing package(s) into ?C:/Program Files/R/library? (as ?lib? is
unspecified) also installing the dependency ?Rcpp? trying URL
'http://cran.at.r-project.org/bin/windows/contrib/2.15/Rcpp_0.10.2.zip'Content
type 'application/zip' length 3882722 bytes (3.7 Mb) opened URL
downloaded 3.7 Mb trying URL
'http://cran.at.r-project.org/bin/windows/contrib/2.15/RcppClassic_0.9.3.zip'Content
type 'application/zip' length 854312 bytes (834 Kb) opened URL
downloaded 834 Kb package ?Rcpp? successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ?Rcpp? package
?RcppClassic? successfully unpacked and MD5 sums checked The downloaded binary
packages are in
C:\Users\xxxx\AppData\Local\Temp\Rtmp2t8Lm6\downloaded_packages
> Thanks,Lin
>
> [[alternative HTML version deleted]]
The jumbled content that reached the mailing list is due to your failing to heed
the directions in the Posting Guide. (There is quite a bit more that you should
be doing that is also described therein.)
It appears that your error may be due to your failure to read and properly
address the warnings in that console output: "Warning: cannot remove prior
installation of package ?Rcpp? package ?RcppClassic". My guess is that you
are trying to install a package when it is already loaded and that your (unnamed
but obviously Windows) OS is trying to "protect" it. But it is a
guess since I work in a different OS and I do not use Rcpp. (I do however read
warnings and search Rhelp for prior reports.) If my guess is correct, you may
get success by exiting R, restarting and then installing the new version of the
package and then re-load it.
--
David Winsemius
Alameda, CA, USA