[Rd] as.vector in R-devel loaded 3/3/2016

Morgan, Martin Martin.Morgan at roswellpark.org
Fri Mar 4 13:36:25 CET 2016

I see as below, where getGeneric and getMethod imply a different signature; the signature is mode="any" for both cases in R version 3.2.3 Patched (2016-01-28 r70038)I don't know how to reproduce Jeff's error, though.

> library(Matrix)
> as.vector
function (x, mode = "any") 
.Internal(as.vector(x, mode))
<bytecode: 0xe79f88>
<environment: namespace:base>
> getGeneric("as.vector")
standardGeneric for "as.vector" defined from package "base"

function (x, mode) 
<bytecode: 0x29a6bd0>
<environment: 0x299f988>
Methods may be defined for arguments: x
Use  showMethods("as.vector")  for currently available ones.
> selectMethod("as.vector", "ANY")
Method Definition (Class "internalDispatchMethod"):

function (x, mode) 
.Internal(as.vector(x, mode))
<environment: base>

target  "ANY"
defined "ANY"
> sessionInfo()
R Under development (unstable) (2016-02-27 r70232)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.4 LTS

 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Matrix_1.2-4

loaded via a namespace (and not attached):
[1] grid_3.3.0      lattice_0.20-33

From: R-devel <r-devel-bounces at r-project.org> on behalf of Martin Maechler <maechler at stat.math.ethz.ch>
Sent: Friday, March 4, 2016 6:05 AM
To: peter dalgaard
Cc: r-devel at r-project.org; Jeff Laake - NOAA Federal
Subject: Re: [Rd] as.vector in R-devel loaded 3/3/2016

>>>>> peter dalgaard <pdalgd at gmail.com>
>>>>>     on Fri, 4 Mar 2016 09:21:48 +0100 writes:

    > Er, until _what_ is fixed?
    > I see no anomalies with the version in R-pre:


The problem ... I also have stumbled over ..
is that I'm sure Jeff is accidentally loading a different
version of 'Matrix' than the one that is part of R-devel.

Jeff you must accidentally be loading a version Matrix made with
R 3.2.x in R 3.3.0  and that will fail with the as.vector()
mismatch error message.

(and IIRC, you also get such an error message if you load a
 3.3.0-built version of Matrix into a non-3.3.0 version of R).


R-devel at r-project.org mailing list

This email message may contain legally privileged and/or confidential information.  If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited.  If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.

More information about the R-devel mailing list