Skip to content

Commit 601dca5

Browse files
Example will only launch Shiny app in interactive mode
1 parent da37f0d commit 601dca5

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ is_fake <- local({
101101

102102
known_progression_handlers <- function(exclude = NULL) {
103103
ns <- asNamespace(.packageName)
104-
handlers <- ls(envir = ns, pattern = "_handler$")
104+
handlers <- ls(envir = ns, pattern = "^handler_")
105105
handlers <- setdiff(handlers, c("make_progression_handler", "print.progression_handler"))
106106
handlers <- setdiff(handlers, exclude)
107107
handlers <- mget(handlers, envir = ns, inherits = FALSE)

incl/withProgressShiny.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,5 @@ app <- shinyApp(
3030
local({
3131
oopts <- options(device.ask.default = FALSE)
3232
on.exit(options(oopts))
33-
\donttest{
34-
print(app)
35-
}
33+
if (interactive()) print(app)
3634
})

man/withProgressShiny.Rd

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)