[Rd] class(<matrix>) |--> c("matrix", "arrary") -- and S3 dispatch

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Mon Nov 25 18:01:14 CET 2019

On 21 November 2019 at 17:57, Martin Maechler wrote:
| (if you use a version of R-devel, with svn rev >= 77446; which
|  you may get as a binary for Windows in about one day; everyone
|  else needs to compile for the sources .. or wait a bit, maybe
|  also not much longer than one day, for a docker image) :

FYI: rocker/drd [1] and rocker/r-devel both have rev 77455 now (as they are
both on weekend auto-rebuild schedule).  The former is smaller, both should
work to test this. Quick demo below [2].


[1] This comes from 'drd == daily r-devel' but we do not build it daily.
[2] Quick demo follows

edd using rob:~$ docker run --rm -ti rocker/r-devel bash
root using a30e4a5c89ba:/# RD

R Under development (unstable) (2019-11-23 r77455) -- "Unsuffered Consequences"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> Sys.setenv("_R_CLASS_MATRIX_ARRAY_" = "BOOH !") # ==> future R behavior
> class(m <- diag(1))
[1] "matrix" "array" 

http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org

More information about the R-devel mailing list