Matthias Burger
2004-Oct-05 21:17 UTC
[Rd] R 2.0.0: problem: installing --with-package-versions
Hello R developers, installing R 2.0.0 from source on a Linux Debian system (gcc 3.2.2) - which worked just fine - I encountered the following problem when trying to update/install packages with the option --with-package-versions: example: RUnit 0.4.0 (also on CRAN) R20 CMD INSTALL -l /mnt/local/R/R-2.0.x-libs-EpiR --with-package-versions RUnit_0.4.0.tar.gz or after untaring R20 CMD INSTALL -l /mnt/local/R/R-2.0.x-libs-EpiR --with-package-versions RUnit I get * Installing *source* package 'RUnit' as 'RUnit_0.4.0' ... ** R ** inst ** save image Error in loadNamespace(package, lib.loc, keep.source, TRUE, TRUE) : package 'RUnit' does not have a name space Execution halted ERROR: execution of package source for 'RUnit' failed This happens only with the --with-package-versions option. I scanned the manual and ?INSTALL but did not find mention of this behaviour. Any suggestion what I have overlooked or how to cure the failure? Regards, Matthias >version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 2 minor 0.0 year 2004 month 10 day 04 language R -- 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@epigenomics.com
Prof Brian Ripley
2004-Oct-05 22:16 UTC
[Rd] R 2.0.0: problem: installing --with-package-versions
It seems that if you first install this without --with-package-versions then with and then remove the first version, it works. Here is a patch, shortly to appear in R-patched/R-devel: --- INSTALL.in (revision 31298) +++ INSTALL.in (working copy) @@ -601,10 +601,10 @@ ## is no namespace). Argh. ## </NOTE> save_image_defaults="list(compress=TRUE, safe=FALSE)" - code_file="${R_PACKAGE_DIR}/R/${R_PACKAGE_NAME}" + code_file="${R_PACKAGE_DIR}/R/${pkg_name}" rda_file="${R_PACKAGE_DIR}/R/all.rda" if test -f NAMESPACE; then - code_cmd="echo invisible(.libPaths(c(\"${lib}\", .libPaths()))); .getRequiredPackages(); saveNamespaceImage(\"${pkg_name}\", \"${rda_file}\", \"${lib}\")" + code_cmd="echo invisible(.libPaths(c(\"${lib}\", .libPaths()))); .getRequiredPackages(); saveNamespaceImage(\"${R_PACKAGE_NAME}\", \"${rda_file}\", \"${lib}\")" loader_file=nsrdaload.R R_save_args="--vanilla --slave" else On Tue, 5 Oct 2004, Matthias Burger wrote:> > Hello R developers, > > installing R 2.0.0 from source on a Linux Debian system (gcc 3.2.2) > - which worked just fine - I encountered the following problem when trying to > update/install packages with the option --with-package-versions: > > example: RUnit 0.4.0 (also on CRAN) > > R20 CMD INSTALL -l /mnt/local/R/R-2.0.x-libs-EpiR --with-package-versions > RUnit_0.4.0.tar.gz > > or after untaring > R20 CMD INSTALL -l /mnt/local/R/R-2.0.x-libs-EpiR --with-package-versions RUnit > > I get > * Installing *source* package 'RUnit' as 'RUnit_0.4.0' ... > ** R > ** inst > ** save image > Error in loadNamespace(package, lib.loc, keep.source, TRUE, TRUE) : > package 'RUnit' does not have a name space > Execution halted > ERROR: execution of package source for 'RUnit' failed > > This happens only with the --with-package-versions option. > I scanned the manual and ?INSTALL but did not find mention of this behaviour. > > Any suggestion what I have overlooked or how to cure the failure? > > > Regards, > > Matthias > > > >version > _ > platform i686-pc-linux-gnu > arch i686 > os linux-gnu > system i686, linux-gnu > status > major 2 > minor 0.0 > year 2004 > month 10 > day 04 > language R > >-- Brian D. Ripley, ripley@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
Reasonably Related Threads
- anyone familiar with this error?
- R 2.0.0: namespaces, S4 classes & versioned package installation: failure to resolve correct pkg version
- couldn't find function "setClass"
- Installing DLL elsewhere than in \libs?
- installing package with version number using namespaces & dynamic library