Skip to content
Prev 3081 / 12125 Next

[R-pkg-devel] Submission to CRAN when package needs personal data (API key)

On Wed, Sep 5, 2018 at 3:03 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
I would like to gently push back on this assertion: if CRAN set an
environment variable we would have one single convention that all
packages could rely on. The current system relies on each package
author evolving their own solution. This makes life difficult when you
are running local reverse dependency checks: there is no way to
systematically assert that you want to run tests in a way as similar
as possible to CRAN.

I know that the CRAN maintainers already have a very large workload,
and I hate to add to it, but setting CRAN=1 in a few profile files
doesn't seem excessively burdensome.
10 years ago, I would have definitely supported this statement. But I
am not sure it is still correct today, as there are now many packages
that require a connection to web API to work (or depend on a package
that uses an API). Additionally, CRAN only allows a limited amount of
compute time for each check, so there are often longer tests that you
want to run locally but not on CRAN. CRAN is a specialised testing
service and it does have different constraints to your local machine,
travis, and bioconductor.

A quick search of the CRAN mirror on github
(https://github.com/search?q=org%3Acran+skip_on_cran&type=Code)
reveals that there are ~2700 tests that use testthat::skip_on_cran().
This is obviously an underestimate of the total number of tests
skipped on CRAN, as many packages don't use testthat, or use an
alternative technique to avoid running code on CRAN.

Hadley

Thread (38 messages)

Rainer M Krug Submission to CRAN when package needs personal data (API key) Sep 5 Uwe Ligges Submission to CRAN when package needs personal data (API key) Sep 5 Rainer M Krug Submission to CRAN when package needs personal data (API key) Sep 5 Peter Meissner Submission to CRAN when package needs personal data (API key) Sep 5 Spencer Graves Submission to CRAN when package needs personal data (API key) Sep 5 Gábor Csárdi Submission to CRAN when package needs personal data (API key) Sep 5 Spencer Graves Submission to CRAN when package needs personal data (API key) Sep 5 Henrik Bengtsson Submission to CRAN when package needs personal data (API key) Sep 5 Duncan Murdoch Submission to CRAN when package needs personal data (API key) Sep 5 Rainer M Krug Submission to CRAN when package needs personal data (API key) Sep 5 Thierry Onkelinx Submission to CRAN when package needs personal data (API key) Sep 6 Rainer M Krug Submission to CRAN when package needs personal data (API key) Sep 6 Hadley Wickham Submission to CRAN when package needs personal data (API key) Sep 6 Duncan Murdoch Submission to CRAN when package needs personal data (API key) Sep 6 David Hugh-Jones Submission to CRAN when package needs personal data (API key) Sep 6 Rainer M Krug Submission to CRAN when package needs personal data (API key) Sep 7 Duncan Murdoch Submission to CRAN when package needs personal data (API key) Sep 7 Gábor Csárdi Submission to CRAN when package needs personal data (API key) Sep 7 David Hugh-Jones Submission to CRAN when package needs personal data (API key) Sep 7 Spencer Graves Submission to CRAN when package needs personal data (API key) Sep 7 Dirk Eddelbuettel Submission to CRAN when package needs personal data (API key) Sep 7 Gábor Csárdi Submission to CRAN when package needs personal data (API key) Sep 7 Duncan Murdoch Submission to CRAN when package needs personal data (API key) Sep 7 Dirk Eddelbuettel Submission to CRAN when package needs personal data (API key) Sep 7 Iñaki Ucar Submission to CRAN when package needs personal data (API key) Sep 7 Ralf Stubner Submission to CRAN when package needs personal data (API key) Sep 7 Iñaki Ucar Submission to CRAN when package needs personal data (API key) Sep 7 Hadley Wickham Submission to CRAN when package needs personal data (API key) Sep 7 Duncan Murdoch Submission to CRAN when package needs personal data (API key) Sep 7 Spencer Graves Submission to CRAN when package needs personal data (API key) Sep 7 Dirk Eddelbuettel Submission to CRAN when package needs personal data (API key) Sep 7 Dirk Eddelbuettel Submission to CRAN when package needs personal data (API key) Sep 8 Duncan Murdoch Submission to CRAN when package needs personal data (API key) Sep 8 Joshua Ulrich Submission to CRAN when package needs personal data (API key) Sep 8 Gábor Csárdi Submission to CRAN when package needs personal data (API key) Sep 8 Spencer Graves Submission to CRAN when package needs personal data (API key) Sep 8 Rainer M Krug Submission to CRAN when package needs personal data (API key) Sep 10 Rainer M Krug Submission to CRAN when package needs personal data (API key) Sep 10