Skip to content
Prev 51826 / 63421 Next

S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment

Right, the methods package is not attached by default when running R
with Rscript. We should probably remove that special case, as it
mostly just leads to confusion, but that won't happen immediately.

For now, the S4_extends() should probably throw an error when the
methods namespace is not loaded. And the check should be changed to
directly check whether R_MethodsNamespace has been set to something
other than the default (R_GlobalEnv). Agreed?

On Mon, Apr 18, 2016 at 4:35 PM, Kirill M?ller
<kirill.mueller at ivt.baug.ethz.ch> wrote:

Thread (13 messages)

Kirill Müller S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 18 Kirill Müller S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 18 Michael Lawrence S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 18 Kirill Müller S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 18 Michael Lawrence S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 19 Gabriel Becker S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 19 Michael Lawrence S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 19 Gabriel Becker S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 19 Hadley Wickham S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 19 Henrik Bengtsson S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 19 Dirk Eddelbuettel S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 19 Michael Lawrence S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 19 Martin Maechler S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment Apr 20