Skip to content

Commit

Permalink
Add to Suggests and safeguard plumber example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Oct 10, 2023
1 parent 6c08555 commit 6ce12dc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Imports:
rlang,
tools
Suggests:
plumber,
httr,
spelling,
testthat (>= 3.0.0)
Expand Down
10 changes: 6 additions & 4 deletions R/export.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
#' export(app_dir, out_dir)
#'
#' # Serve the exported directory
#' library(plumber)
#' pr() %>%
#' pr_static("/", out_dir) %>%
#' pr_run()
#' if (require(plumber)) {
#' library(plumber)
#' pr() %>%
#' pr_static("/", out_dir) %>%
#' pr_run()
#' }
export <- function(
appdir,
destdir,
Expand Down
10 changes: 6 additions & 4 deletions man/export.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6ce12dc

Please sign in to comment.