[R-pkg-devel] NOTE: Error while checking: invalid 'envir'-argument

Alexandra Kuznetsova alku at dtu.dk
Thu Jul 9 23:35:40 CEST 2015


I am checking the sensR package https://r-forge.r-project.org/R/?group_id=944

The NOTE is the following one:
* checking R code for possible problems ... NOTE
AnotA: Error while checking: ugyldigt 'envir'-argument
clls: Error while checking: ugyldigt 'envir'-argument
discrimR: Error while checking: ugyldigt 'envir'-argument
duotrio: Error while checking: ugyldigt 'envir'-argument
tetrad: Error while checking: ugyldigt 'envir'-argument
threeAFC: Error while checking: ugyldigt 'envir'-argument
triangle: Error while checking: ugyldigt 'envir'-argument
twoAFC: Error while checking: ugyldigt 'envir'-argument

Looking at the code of these functions I could not find what could be the problem.

My sessionInfo():
> sessionInfo()
R Under development (unstable) (2015-07-08 r68642)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Danish_Denmark.1252 
[2] LC_CTYPE=Danish_Denmark.1252   
[3] LC_MONETARY=Danish_Denmark.1252
[4] LC_NUMERIC=C                   
[5] LC_TIME=Danish_Denmark.1252    

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

other attached packages:
[1] sensR_1.4-6

loaded via a namespace (and not attached):
 [1] TH.data_1.0-6     zoo_1.7-12        MASS_7.3-42      
 [4] multcomp_1.4-0    sandwich_2.3-3    tools_3.3.0      
 [7] survival_2.38-3   mvtnorm_1.0-2     codetools_0.2-11 
[10] splines_3.3.0     grid_3.3.0        numDeriv_2014.2-1
[13] lattice_0.20-31  

Alexandra
________________________________________
From: Martin Maechler [maechler at stat.math.ethz.ch]
Sent: Thursday, July 09, 2015 8:56 PM
To: Hana Sevcikova
Cc: Alexandra Kuznetsova; r-package-devel at r-project.org
Subject: Re: [R-pkg-devel] NOTE: Error while checking: invalid 'envir'-argument

> Alexandra,
> I got the same error for this line of code:

> e <- new.env()
> data("mydataset", envir=e)

> As you said it doesn't appear for R 3.2.1. I don't know why that should
> be wrong and would be interested to know, but my hack is this:

> e <- new.env()
> do.call("data", list("mydataset", envir=e))

> Hana

Hmm,  that would look like a bug in your version of R-devel.
In my version of "R-devel" (and R 3.2.1, and "R 3.2.1 patched"),
I get

  > rm(e); e <- new.env(); data(votes.repub, envir=e); ls(e); dim(e$votes.repub)
  [1] "votes.repub"
  [1] 50 31
  >

  > R.version.string
  [1] "R Under development (unstable) (2015-07-07 r68640)"
  >

What is your R.version.string very you see the problem?
What's
       sessionInfo() ?

Best,
Martin

> On 7/9/15 10:24 AM, peter dalgaard wrote:
> > Hi Alexandra,
> >
> > Is it possible to narrow down a bit more where the message comes from? That error message doesn't give much of a clue.
> >
> > -pd
> >
> >> On 09 Jul 2015, at 15:07 , Alexandra Kuznetsova <alku at dtu.dk> wrote:
> >>
> >> Hi all,
> >>
> >> I am checking the package with the -as-cran option using R Under
> development (unstable) (2015-07-08 r68642). I get the following NOTE:
> Error while checking: invalid 'envir'-argument. Does anyone know how to
> fix that NOTE? I do not get it with the R 2.3.1
> >>
> >> Alexandra
> >>
> >>
> >>    [[alternative HTML version deleted]]
> >>
> >> ______________________________________________
> >> R-package-devel at r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-package-devel
> >

> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list