[R] write a library under 2.0.1 version

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Mar 1 18:40:20 CET 2005


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




More information about the R-help mailing list