We usually do this because all our packages (including rpubmed) make web calls.
For example:
@examples \dontrun{
some code
}
Then the examples dont run during check or the CRAN tests when submitting to CRAN. But you can still run them by doing e.g. run_examples("pathtopackage", run=F), with run=F causing examples with \dontrun to be run.
We usually do this because all our packages (including rpubmed) make web calls.
For example:
Then the examples dont run during check or the CRAN tests when submitting to CRAN. But you can still run them by doing e.g.
run_examples("pathtopackage", run=F)
, with run=F causing examples with \dontrun to be run.