1

My R package (git repository) passes devtools::build locally on my Mac, but the CRAN incoming checks indicate that two of the examples fail on Windows and Linux with the following error:

ERROR
Running examples in 'NRejections-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")

Strangely, this same package had previously passed checks and been uploaded to CRAN, but I recently got an email saying that it is no longer passing these checks on other platforms.

There was a previous question about the same error message, but there it seems the error was inherent to the examples and not platform-dependent.

half-pass
  • 1,851
  • 4
  • 22
  • 33
  • What version of R are you running locally? It's possible CRAN is using a version with more aggressive checks. What you run locally isn't always exactly the same as what's run on their servers. It would be better to provide a minimal reproducible example in your question rather than just linking to your entire package. – MrFlick Jun 30 '20 at 23:48
  • I'll try updating R. Not sure how to create a MWE in this case since it would presumably involve creating a fake package, uploading it to CRAN, and hoping it fails the CRAN checks. – half-pass Jul 02 '20 at 17:25
  • @MrFlick was right -- I had to update R locally in order to reproduce the failing CRAN checks locally. Thanks! – half-pass Jul 07 '20 at 18:34

0 Answers0