Skip to content

Methods package is now attached by default

4 messages · Jeff Gentry, Brian Ripley

#
There's either a problem here or something is wrong on my end as I just
did a rsync to R-devel and the build bombed out with:

gcc -shared -L/usr/local/lib -o methods.so do_substitute_direct.o
methods_list_dispatch.o method_meta_data.o slot.o class_support.o tests.o
-L../../../../bin -lR
../../../../library/methods/libs/methods.so is unchanged
make[5]: Leaving directory `/home/jgentry/R-devel/src/library/methods/src'
make[4]: Leaving directory `/home/jgentry/R-devel/src/library/methods/src'
make[4]: Entering directory `/home/jgentry/R-devel/src/library/methods'
dumping R code in package 'methods'
initializing class and method definitions now ...Error in
setClass("VIRTUAL", sealed = TRUE, where = envir) : 
	"VIRTUAL" has a sealed class definition and cannot be redefined
Execution halted
make[4]: *** [../../../library/methods/R/all.rda] Error 1

-Jeff
#
On Fri, 17 Jan 2003, Jeff Gentry wrote:

            
Try make clean and/or removing library/methods?

There should be an error message, as now the R used to dump methods
expects methods to exist and it is only partially constructed.  We need to
revisit what --vanilla does: it is now urgent to be able to run R without
running the .First.  Or at least that's what I find on a clean build.

  
    
#
On Fri, 17 Jan 2003 ripley@stats.ox.ac.uk wrote:
It actually turned out to be the latter - removing R/library/methods
before building worked perfectly.

-Jeff
#
This should now build without errors: methods is dumped by R running
without .First and hence library(methods).  I've tried both a clean build
and updating one that was a week old.
On Fri, 17 Jan 2003 ripley@stats.ox.ac.uk wrote: