Skip to content

Commit

Permalink
Use purrr::walk() to get better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy authored Feb 16, 2024
1 parent 9d1c719 commit 1e3a23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/run-examples.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ run_examples <- function(pkg = ".", start = NULL, show = deprecated(), run_dontt
load_all(pkg$path, reset = TRUE, export_all = FALSE)
on.exit(load_all(pkg$path, reset = TRUE))

lapply(files, pkgload::run_example, run_donttest = run_donttest, run_dontrun = run_dontrun)
purrr::walk(files, function(x) pkgload::run_example(x, run_donttest = run_donttest, run_dontrun = run_dontrun))

invisible()
}
Expand Down

0 comments on commit 1e3a23c

Please sign in to comment.