Using interactive() in Shiny packages with external examples and shinytest

For a Shiny package, I have put examples using the @example(no s!) in external files to be able to run these with shinytest. Now I am uncertain what guard to use: if (interactive()) is not appropriate because the examples are supposed to run without manual interaction, and it also clutters the code. None of the tests is supposed to run in CRAN.

Any good practice?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.