[R] write a library under 2.0.1 version

Duncan Murdoch murdoch at stats.uwo.ca
Tue Mar 1 17:35:34 CET 2005


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




More information about the R-help mailing list