Skip to content

Commit

Permalink
Minor fix to run_examples documentation. (#2146)
Browse files Browse the repository at this point in the history
* Fix documentation for run_examples.

* Update default of run argument to match pkgload.

Co-authored-by: Jim Hester <[email protected]>
  • Loading branch information
DillonHammill and jimhester authored Feb 17, 2020
1 parent 17d6ecf commit 50e4aae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/run-examples.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' @param show DEPRECATED.
#' @param test if `TRUE`, code in \code{\\donttest{}} will be commented
#' out. If `FALSE`, code in \code{\\testonly{}} will be commented out.
#' @param run if `TRUE`, code in \code{\\dontrun{}} will be commented
#' @param run if `FALSE`, code in \code{\\dontrun{}} will be commented
#' out.
#' @param fresh if `TRUE`, will be run in a fresh R session. This has
#' the advantage that there's no way the examples can depend on anything in
Expand All @@ -26,7 +26,7 @@
#' @keywords programming
#' @export
run_examples <- function(pkg = ".", start = NULL, show = TRUE, test = FALSE,
run = TRUE, fresh = FALSE, document = TRUE) {
run = FALSE, fresh = FALSE, document = TRUE) {
pkg <- as.package(pkg)

if (fresh) {
Expand Down
4 changes: 2 additions & 2 deletions man/run_examples.Rd

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

0 comments on commit 50e4aae

Please sign in to comment.