From edd @end|ng |rom deb|@n@org  Mon Nov 25 18:01:14 2019
From: edd @end|ng |rom deb|@n@org (Dirk Eddelbuettel)
Date: Mon, 25 Nov 2019 11:01:14 -0600
Subject: [Rd] 
 class(<matrix>) |--> c("matrix", "arrary") -- and S3 dispatch
In-Reply-To: <24022.49679.656332.562828@stat.math.ethz.ch>
References: <CAPRVBcxsAkcgr3mDc4skTe8DTxJaYe2xyhk3QMk3odW1MGcyNA@mail.gmail.com>
 <CAPRVBczYZHO3JaFVfNeNNV0-YMRvX3CUYhUvLCjophDEoP+XgQ@mail.gmail.com>
 <23935.14449.965488.684663@stat.math.ethz.ch>
 <CAPRVBcwMY=GAVfFeCwowQsxP31Y=_B2ducosThN+8V91WESB8Q@mail.gmail.com>
 <20449_1568703158_x8H6qIDG009669_f8285123-371f-5d4b-1281-6cc085dba122@fredhutch.org>
 <22204_1568723392_x8HCSG3F015456_674779E0-B1F6-4DC2-9F1C-D5D48B044B66@mcmaster.ca>
 <AD725242-0FB7-4004-9F16-304E345A363A@mcmaster.ca>
 <23937.1791.389379.103733@stat.math.ethz.ch>
 <CAD4oTHF_e4rtHu0S5bUu38+kQSEHXwun3Sv9-CbK+xN9tSc2hA@mail.gmail.com>
 <CAD4oTHFf7Zp+Xe3jvv7oirLWgZm7ZiSNWZvbrEsqJGfrL6Q2wQ@mail.gmail.com>
 <23993.29737.690600.313456@stat.math.ethz.ch>
 <38105A28-07AE-48F6-A4A4-0C1FCCCBFBDC@gmail.com>
 <23995.62027.969336.196344@stat.math.ethz.ch>
 <CAD4oTHF1+PdJX-Qq=JZwafhGNatDu9AZVD0prCAvyJFL9bLzVg@mail.gmail.com>
 <24007.52264.596794.767557@stat.math.ethz.ch>
 <CABdHhvEzVtwajH3fRD_ZOzChf6kVr2j3j6dD-Uo2i92Vj9kTtQ@mail.gmail.com>
 <52b343f6-0861-ac16-4eff-c91d17501843@fredhutch.org>
 <24014.53971.84201.964445@stat.math.ethz.ch>
 <24022.49679.656332.562828@stat.math.ethz.ch>
Message-ID: <24028.2266.688971.570663@rob.eddelbuettel.com>


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].

Dirk

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

edd at rob:~$ docker run --rm -ti rocker/r-devel bash
root at 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 at debian.org



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