Martin Morgan
2011-Jul-19 08:23 UTC
[Rd] requiring NAMESPACE re-installation marked as old.packages?
It would be convenient if, under R-devel r56422, packages that require re-installation because they do not have a NAMESPACE were marked as old.packages, so their lack of functionality can be discovered more easily. > "snow" %in% row.names(old.packages()) [1] FALSE > library(snow) Error in library(snow) : package 'snow' does not have a NAMESPACE and should be re-installed > install.packages("snow", repos="http://cran.r-project.org") Installing package(s) into '/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/2.14' (as 'lib' is unspecified) trying URL 'http://cran.r-project.org/src/contrib/snow_0.3-5.tar.gz' Content type 'application/x-gzip' length 21059 bytes (20 Kb) opened URL =================================================downloaded 20 Kb * installing *source* package 'snow' ... ** R ** inst ** Creating default NAMESPACE file ** preparing package for lazy loading ** help *** installing help indices ** building package indices ... ** testing if installed package can be loaded Warning: running .First.lib() for package 'snow' as .onLoad/.onAssign were not found Error in initDefaultClusterOptions() : cannot change value of locked binding for 'defaultClusterOptions' Error: loading failed Execution halted ERROR: loading failed * removing '/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/2.14/snow' * restoring previous '/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/2.14/snow' The downloaded packages are in '/tmp/RtmpoGypnz/downloaded_packages' Warning message: In install.packages("snow", repos = "http://cran.r-project.org") : installation of package 'snow' had non-zero exit status Martin -- Computational Biology Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: M1-B861 Telephone: 206 667-2793
Uwe Ligges
2011-Jul-21 16:13 UTC
[Rd] requiring NAMESPACE re-installation marked as old.packages?
Most if not all packages will need a re-installation, not only those you talked about (in particular there is a new snow on CRAN already). Hence I think it is not worth the effort to find out what "old" means. Please note this may change during the development cycle and you may even need one or more re-installations before the next R is released. S4 packages may even need re-installation if other S4 packages (the former depend on) change. Best, Uwe On 19.07.2011 10:23, Martin Morgan wrote:> It would be convenient if, under R-devel r56422, packages that require > re-installation because they do not have a NAMESPACE were marked as > old.packages, so their lack of functionality can be discovered more easily. > > > "snow" %in% row.names(old.packages()) > [1] FALSE > > library(snow) > Error in library(snow) : > package 'snow' does not have a NAMESPACE and should be re-installed > > install.packages("snow", repos="http://cran.r-project.org") > Installing package(s) into > '/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/2.14' > (as 'lib' is unspecified) > trying URL 'http://cran.r-project.org/src/contrib/snow_0.3-5.tar.gz' > Content type 'application/x-gzip' length 21059 bytes (20 Kb) > opened URL > =================================================> downloaded 20 Kb > > * installing *source* package 'snow' ... > ** R > ** inst > ** Creating default NAMESPACE file > ** preparing package for lazy loading > ** help > *** installing help indices > ** building package indices ... > ** testing if installed package can be loaded > Warning: running .First.lib() for package 'snow' as .onLoad/.onAssign > were not found > Error in initDefaultClusterOptions() : > cannot change value of locked binding for 'defaultClusterOptions' > Error: loading failed > Execution halted > ERROR: loading failed > * removing '/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/2.14/snow' > * restoring previous > '/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/2.14/snow' > > The downloaded packages are in > '/tmp/RtmpoGypnz/downloaded_packages' > Warning message: > In install.packages("snow", repos = "http://cran.r-project.org") : > installation of package 'snow' had non-zero exit status > > Martin