[Rd] as.vector in R-devel loaded 3/3/2016
Jeff Laake - NOAA Federal
jeff.laake at noaa.gov
Fri Mar 4 01:09:47 CET 2016
I dug into this a little further and discovered the problem. When my
package is for checking, it loads Matrix. In the R-devel version of
Matrix, as.vector is re-defined without mode specified
> as.vector
standardGeneric for "as.vector" defined from package "base"
function (x, mode)
standardGeneric("as.vector")
<environment: 0x082faf08>
Methods may be defined for arguments: x, mode
Use showMethods("as.vector") for currently available ones.
In R3.2.3 it is defined with mode="any" specified.
> as.vector
standardGeneric for "as.vector" defined from package "base"
function (x, mode = "any")
standardGeneric("as.vector")
<environment: 0x084af110>
Methods may be defined for arguments: x, mode
Use showMethods("as.vector") for currently available ones.
Until this is fixed I'll copy over the devel version of Matrix.
--jeff
On Thu, Mar 3, 2016 at 7:23 AM, Jeff Laake - NOAA Federal <
jeff.laake at noaa.gov> wrote:
> I just installed R-devel to check my package before submitting. I got an
> error in my vignette in regards to as.vector. When I looked at the code
> for as.vector in R-devel it is
>
> standardGeneric for "as.vector" defined from package "base"
>
> function (x, mode)
> standardGeneric("as.vector")
> <environment: 0x0918ad70>
> Methods may be defined for arguments: x, mode
> Use showMethods("as.vector") for currently available ones.
>
> The code from R3.2.3 is
> > as.vector
> function (x, mode = "any")
> .Internal(as.vector(x, mode))
> <bytecode: 0x02dfb858>
> <environment: namespace:base>
> >
>
> Is default for mode missing as I suspect or will mode be required from now
> on?
>
[[alternative HTML version deleted]]
More information about the R-devel
mailing list