[R-pkg-devel] how to skip tests on CRAN but NOT on travis-ci?
murdoch.duncan at gmail.com
Mon Jun 22 02:52:22 CEST 2015
On 21/06/2015 1:03 PM, Gábor Csárdi wrote:
> On Sun, Jun 21, 2015 at 12:09 PM, Duncan Murdoch
> <murdoch.duncan at gmail.com> wrote:
>> Besides the other suggestions, you can put tests in directories other
>> than "tests". By default they won't run, but
>> R CMD check --test-dir=travisTests
>> will run them. So if you can tell travis to add that option to the
>> command line, you could put all the travis-specific tests into
>> inst/travisTests, and it will run them instead of the regular ones.
> AFAIK this does not play very well with testthat, which the OP is clearly using.
Which seems like a problem with that package...
> Also, the OP wants run _additional_ tests, not something _instead_ of
> the "regular" ones.
But it's trivial to source files from the tests directory. Or perhaps
(I don't know, I don't use it) it's trivial to tell travis to run the
standard R CMD check, followed by the suggested one.
More information about the R-package-devel