Skip to content
Prev 3568 / 12125 Next

[R-pkg-devel] CRAN submission examples don't run

Dear Timothy,

Uwe meant to include that code in the _examples_, not in your actual
functions. Whenever an example is expected to open a web page, use
if(interactive()) to avoid it from being run by the test infrastructure.

On a sidenote: It would make sense to add this as a first check to
functions which can only work when called interactively. That's up to you.
However, beware of errors created when the function is not run
interactively, as this would also cause your examples to give errors.

Cheers
Joris
On Tue, Mar 5, 2019 at 11:56 AM Horia Yeb <horia.yeb at gmail.com> wrote: