[R] installing package with version number using namespaces & dynamic library

Matthias Burger matthias.burger at epigenomics.com
Wed Aug 4 13:17:27 CEST 2004



Hi,

I wonder whether a package with namespace & dynamic library can be installed 
with the version number attached, ie. with the argument --with-package-versions. 
Is this currently possible?


Using R 1.9.1 on Debian 3.0 I encounter a problem when trying to load a package 
installed with

R91 CMD INSTALL --with-package-versions -l /mnt/local/R/R-1.9.x-libs-EpiR RIO

in R started with
R91 --vanilla

 > .libPaths()
[1] "/mnt/local/R/R-1.9.x-libs"          "/mnt/local/R/R-1.9.x-libs-BioC"
[3] "/mnt/local/R/R-1.9.x-libs-EpiR"     "/mnt/local/R/R-1.9.1/lib/R/library"

either
 > library("RIO")
Error in library.dynam(pkg, pkg, lib) : shared library 'RIO_1.4.0' not found
Error: .onLoad failed in loadNamespace
Error in library("RIO") : package/namespace load failed
or
 > library("RIO_1.4.0")
Error in library.dynam(pkg, pkg, lib) : shared library 'RIO_1.4.0' not found
Error: .onLoad failed in loadNamespace
Error in library("RIO_1.4.0") : package/namespace load failed

fail.

Without the '--with-package-versions' option the installed package loads without 
problem with the call
library("RIO")


file Namesapce defines (amoung other directives):

useDynLib(RIO)

I also tryed
useDynLib("RIO_1.4.0")
to no avail. But RIO/libs contains the file RIO.so anyway.

I checked in 'Writing R Extensions" section 'Package name spaces' but did not 
find an answer.


Any hints?

Regards,

    Matthias


-- 
Matthias Burger                     Project Manager/ Biostatistician
Epigenomics AG    Kleine Praesidentenstr. 1    10178 Berlin, Germany
phone:+49-30-24345-371                          fax:+49-30-24345-555
http://www.epigenomics.com           matthias.burger at epigenomics.com




More information about the R-help mailing list