Hi there, I had written a library under R 1.9.0 and now I would like to import that library under R 2.0.1 Apparently it does not work; I can install the package, but when I try to read it the error is the following: Error in library(compvar) : 'compvar' is not a valid package -- installed < 2.0.0 I have checked other libraries in R 2.0.1 and I noticed that there is a new folders (Meta) that were not present under R 1.9.1 as well as a file (MD5). Moreover, under R folders there are files with .rdx and .rdb extensions that were not present before. I was wondering how I can built these files for the library to be importable under 2.0.1 version. Any suggestion? Cheers, Marta
marta at statistica.it wrote:> Hi there, > I had written a libraryYou are talking about a *package*, I guess.> under R 1.9.0 and now I would like to import that > library under R 2.0.1You have to (re-)install it from the sources.> Apparently it does not work; I can install the package, but when I try to > read it the error is the following: > > Error in library(compvar) : 'compvar' is not a valid package -- installed > < 2.0.0>> I have checked other libraries in R 2.0.1 and I noticed that there is a > new folders (Meta) that were not present under R 1.9.1 as well as a file > (MD5). Moreover, under R folders there are files with .rdx and .rdb > extensions that were not present before.Right, lazy loading database.> I was wondering how I can built these files for the library to be > importable under 2.0.1 version.I guess you are under Windows? Please read the R FAQ, the R for Windows FAQ, the manual "Writing R Extensions" and also ?INSTALL. All of them mention how to install from the package's sources. Uwe Ligges> > Any suggestion? > > Cheers, > Marta > > ______________________________________________ > 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
>>>>> "marta" == marta <marta at statistica.it> >>>>> on Tue, 1 Mar 2005 16:23:17 +0100 (CET) writes:marta> Hi there, marta> I had written a library under R 1.9.0 and now I would like to import that marta> library under R 2.0.1 "package", "package", "package" -- a "library" is something really different! marta> Apparently it does not work; I can install the marta> package, but when I try to read it the error is the marta> following: marta> Error in library(compvar) : 'compvar' is not a valid package -- installed marta> < 2.0.0 so you haven't really "installed" in the sense of "Rcmd INSTALL <pkgname>" [ You didn't tell us, but you probably are using Micro$oft Windows? On other platforms its "R CMD INSTALL <pkgname>" ] and you (or whoever provided the ``pre-compiled'' package to you) must run "Rcmd INSTALL" on that package where 'Rcmd' is any R version 2.x.y (2.0.1, typically). However, this won't work easily for you if you are on Windows, since you need to first install quite a few tools before you can build and install packages ```from source'' --> read the 'rw-faq' i.e. "R for windows Frequently Asked Questions (and answers)" that is accessible from the [Help] menu on Windows. marta> I have checked other libraries in R 2.0.1 and I other >> packages << marta> noticed that there is a new folders (Meta) that were marta> not present under R 1.9.1 as well as a file marta> (MD5). Moreover, under R folders there are files with marta> .rdx and .rdb extensions that were not present marta> before. these are rather in connection with Lazyloading and other features that more packages are using, but you shouldn't have to know about. marta> I was wondering how I can built these files for the library to be marta> importable under 2.0.1 version. marta> Any suggestion? "Rcmd INSTALL" (but see above) Regards, Martin Maechler, ETH Zurich
On Tue, 1 Mar 2005 16:23:17 +0100 (CET), marta at statistica.it wrote :>Hi there, >I had written a library under R 1.9.0 and now I would like to import that >library under R 2.0.1 >Apparently it does not work; I can install the package, but when I try to >read it the error is the following: > >Error in library(compvar) : 'compvar' is not a valid package -- installed >< 2.0.0 > >I have checked other libraries in R 2.0.1 and I noticed that there is a >new folders (Meta) that were not present under R 1.9.1 as well as a file >(MD5). Moreover, under R folders there are files with .rdx and .rdb >extensions that were not present before. > >I was wondering how I can built these files for the library to be >importable under 2.0.1 version. > >Any suggestion?You need to use R CMD INSTALL path-to-src-package to build those files and install the package properly. Simply copying it into place doesn't work. See the Writing R Extensions manual for more details. Duncan Murdoch
On Tue, 1 Mar 2005 marta at statistica.it wrote:> Hi there, > I had written a library under R 1.9.0 and now I would like to import that > library under R 2.0.1 > Apparently it does not work; I can install the package, but when I try to > read it the error is the following: > > Error in library(compvar) : 'compvar' is not a valid package -- installed > < 2.0.0 > > I have checked other libraries in R 2.0.1 and I noticed that there is a > new folders (Meta) that were not present under R 1.9.1 as well as a file > (MD5). Moreover, under R folders there are files with .rdx and .rdb > extensions that were not present before. > > I was wondering how I can built these files for the library to be > importable under 2.0.1 version.You install the package with R CMD INSTALL, just as was documented for 1.9.1. See the `Writing R Extensions' and `R Installation and Administration' manuals. -- 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