From jeff.laake at noaa.gov  Fri Mar  4 01:09:47 2016
From: jeff.laake at noaa.gov (Jeff Laake - NOAA Federal)
Date: Thu, 3 Mar 2016 16:09:47 -0800
Subject: [Rd] as.vector in R-devel loaded 3/3/2016
In-Reply-To: <CA+_rFBK8c5gXFm41StNPDiBYTW=uLXvj5d4cGzpfi9gdv-mW7A@mail.gmail.com>
References: <CA+_rFBK8c5gXFm41StNPDiBYTW=uLXvj5d4cGzpfi9gdv-mW7A@mail.gmail.com>
Message-ID: <CA+_rFBJbtEw47Qq-yfs54E7AwgX8+HK3FcXL3a7z+coDA=-KeQ@mail.gmail.com>

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



[Rd] as.vector in R-devel loaded 3/3/2016
Jeff Laake - NOAA Federal