Skip to content

Learnr Tutorials in CRAN Packages Tests #661

Answered by gadenbuie
risktoollib asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @risktoollib, I'd recommend using if (interactive()) in your example to indicate that the function should only be run interactively. This will fix the R CMD check problem and I hope that CRAN would accept that solution.

#' @examples
#' if (interactive()) {
#'   riskintopracticeEnergy()
#' }

If for some reason this example comes up in the CRAN review, I would politely explain to the reviewer that the function starts an interactive Shiny web app and is only meant to be run interactively. There are also many packages currently on CRAN that use this pattern, I could help you dig up a couple examples if it comes to that.

Also, would you mind if I added your package to our show-and-tell dis…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@risktoollib
Comment options

Answer selected by gadenbuie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants