diff --git a/R/config.R b/R/config.R index b3b8448a2..d5486cdc1 100644 --- a/R/config.R +++ b/R/config.R @@ -47,7 +47,7 @@ config <- function( }, cache = drake::get_cache(), parallelism = drake::default_parallelism(), - jobs = 1, packages = (.packages()), prework = character(0), + jobs = 1, packages = rev(.packages()), prework = character(0), prepend = character(0), command = drake::default_Makefile_command(), args = drake::default_system2_args( jobs = jobs, diff --git a/R/dataframes_graph.R b/R/dataframes_graph.R index fe6886bc2..4c04008d7 100644 --- a/R/dataframes_graph.R +++ b/R/dataframes_graph.R @@ -126,7 +126,7 @@ dataframes_graph <- function( force(code) }, cache = drake::get_cache(), jobs = 1, - parallelism = drake::default_parallelism(), packages = (.packages()), + parallelism = drake::default_parallelism(), packages = rev(.packages()), prework = character(0), build_times = TRUE, digits = 3, targets_only = FALSE, split_columns = FALSE, font_size = 20, config = NULL, diff --git a/R/make.R b/R/make.R index c7d710ff3..97b58cfe7 100644 --- a/R/make.R +++ b/R/make.R @@ -81,7 +81,7 @@ #' \code{make(..., parallelism = "Makefile", jobs = 2, args = "--jobs=4")} #' #' @param packages character vector packages to load, in the order -#' they should be loaded. Defaults to \code{(.packages())}, so you +#' they should be loaded. Defaults to \code{rev(.packages())}, so you #' should not usually need to set this manually. Just call #' \code{\link{library}()} to load your packages before \code{make()}. #' However, sometimes packages need to be strictly forced to load @@ -198,7 +198,7 @@ make <- function( cache = drake::get_cache(), parallelism = drake::default_parallelism(), jobs = 1, - packages = (.packages()), + packages = rev(.packages()), prework = character(0), prepend = character(0), command = drake::default_Makefile_command(), diff --git a/R/outdated.R b/R/outdated.R index 18722170b..600470ec3 100644 --- a/R/outdated.R +++ b/R/outdated.R @@ -45,7 +45,7 @@ outdated <- function( cache = drake::get_cache(), parallelism = drake::default_parallelism(), jobs = 1, - packages = (.packages()), + packages = rev(.packages()), prework = character(0), config = NULL ){ @@ -151,7 +151,7 @@ missed <- function( }, jobs = 1, parallelism = drake::default_parallelism(), - packages = (.packages()), + packages = rev(.packages()), prework = character(0), config = NULL ){ diff --git a/R/parallel_ui.R b/R/parallel_ui.R index 92ebff155..4ad344caf 100644 --- a/R/parallel_ui.R +++ b/R/parallel_ui.R @@ -223,7 +223,7 @@ max_useful_jobs <- function( }, cache = drake::get_cache(), jobs = 1, parallelism = drake::default_parallelism(), - packages = (.packages()), prework = character(0), config = NULL, + packages = rev(.packages()), prework = character(0), config = NULL, imports = c("files", "all", "none") ){ force(envir) diff --git a/R/plotgraph.R b/R/plotgraph.R index 1ac9e3e9a..66dda99c8 100644 --- a/R/plotgraph.R +++ b/R/plotgraph.R @@ -156,7 +156,7 @@ plot_graph <- function( }, cache = drake::get_cache(), jobs = 1, parallelism = drake::default_parallelism(), - packages = (.packages()), prework = character(0), + packages = rev(.packages()), prework = character(0), config = NULL, file = character(0), selfcontained = FALSE, build_times = TRUE, digits = 3, targets_only = FALSE, diff --git a/R/predict_runtime.R b/R/predict_runtime.R index a9ea541b7..be5f7ffaf 100644 --- a/R/predict_runtime.R +++ b/R/predict_runtime.R @@ -79,7 +79,7 @@ predict_runtime <- function( parallelism = drake::default_parallelism(), jobs = 1, future_jobs = jobs, - packages = (.packages()), + packages = rev(.packages()), prework = character(0), config = NULL, digits = 3, @@ -231,7 +231,7 @@ rate_limiting_times <- function( parallelism = drake::default_parallelism(), jobs = 1, future_jobs = jobs, - packages = (.packages()), + packages = rev(.packages()), prework = character(0), config = NULL, digits = 3, diff --git a/man/config.Rd b/man/config.Rd index 1fd160dc0..e8c2889eb 100644 --- a/man/config.Rd +++ b/man/config.Rd @@ -8,7 +8,7 @@ config(plan = workplan(), targets = drake::possible_targets(plan), envir = parent.frame(), verbose = TRUE, hook = function(code) { force(code) }, cache = drake::get_cache(), parallelism = drake::default_parallelism(), jobs = 1, - packages = (.packages()), prework = character(0), + packages = rev(.packages()), prework = character(0), prepend = character(0), command = drake::default_Makefile_command(), args = drake::default_system2_args(jobs = jobs, verbose = verbose), recipe_command = drake::default_recipe_command(), timeout = Inf, diff --git a/man/dataframes_graph.Rd b/man/dataframes_graph.Rd index f1b3a390a..e57e9a650 100644 --- a/man/dataframes_graph.Rd +++ b/man/dataframes_graph.Rd @@ -7,7 +7,7 @@ dataframes_graph(plan = workplan(), targets = drake::possible_targets(plan), envir = parent.frame(), verbose = TRUE, hook = function(code) { force(code) }, cache = drake::get_cache(), jobs = 1, - parallelism = drake::default_parallelism(), packages = (.packages()), + parallelism = drake::default_parallelism(), packages = rev(.packages()), prework = character(0), build_times = TRUE, digits = 3, targets_only = FALSE, split_columns = FALSE, font_size = 20, config = NULL, from = NULL, mode = c("out", "in", "all"), diff --git a/man/make.Rd b/man/make.Rd index 0f8ae47f6..83885e4b8 100644 --- a/man/make.Rd +++ b/man/make.Rd @@ -8,7 +8,7 @@ make(plan = workplan(), targets = drake::possible_targets(plan), envir = parent.frame(), verbose = TRUE, hook = function(code) { force(code) }, cache = drake::get_cache(), parallelism = drake::default_parallelism(), jobs = 1, - packages = (.packages()), prework = character(0), + packages = rev(.packages()), prework = character(0), prepend = character(0), command = drake::default_Makefile_command(), args = drake::default_system2_args(jobs = jobs, verbose = verbose), recipe_command = drake::default_recipe_command(), clear_progress = TRUE, @@ -92,7 +92,7 @@ most 4 jobs for targets, run \code{make(..., parallelism = "Makefile", jobs = 2, args = "--jobs=4")}} \item{packages}{character vector packages to load, in the order -they should be loaded. Defaults to \code{(.packages())}, so you +they should be loaded. Defaults to \code{rev(.packages())}, so you should not usually need to set this manually. Just call \code{\link{library}()} to load your packages before \code{make()}. However, sometimes packages need to be strictly forced to load diff --git a/man/max_useful_jobs.Rd b/man/max_useful_jobs.Rd index b6fe64a2e..1369e19dc 100644 --- a/man/max_useful_jobs.Rd +++ b/man/max_useful_jobs.Rd @@ -8,7 +8,7 @@ max_useful_jobs(plan = workplan(), from_scratch = FALSE, targets = drake::possible_targets(plan), envir = parent.frame(), verbose = TRUE, hook = function(code) { force(code) }, cache = drake::get_cache(), jobs = 1, - parallelism = drake::default_parallelism(), packages = (.packages()), + parallelism = drake::default_parallelism(), packages = rev(.packages()), prework = character(0), config = NULL, imports = c("files", "all", "none")) } diff --git a/man/missed.Rd b/man/missed.Rd index 250b7245d..fef12b380 100644 --- a/man/missed.Rd +++ b/man/missed.Rd @@ -7,7 +7,7 @@ missed(plan = workplan(), targets = drake::possible_targets(plan), envir = parent.frame(), verbose = TRUE, hook = function(code) { force(code) }, jobs = 1, parallelism = drake::default_parallelism(), - packages = (.packages()), prework = character(0), config = NULL) + packages = rev(.packages()), prework = character(0), config = NULL) } \arguments{ \item{plan}{workflow plan data frame, same as for function diff --git a/man/outdated.Rd b/man/outdated.Rd index 10e923fa4..b409192e4 100644 --- a/man/outdated.Rd +++ b/man/outdated.Rd @@ -8,7 +8,7 @@ outdated(plan = workplan(), targets = drake::possible_targets(plan), envir = parent.frame(), verbose = TRUE, hook = function(code) { force(code) }, cache = drake::get_cache(), parallelism = drake::default_parallelism(), jobs = 1, - packages = (.packages()), prework = character(0), config = NULL) + packages = rev(.packages()), prework = character(0), config = NULL) } \arguments{ \item{plan}{same as for \code{\link{make}}} diff --git a/man/plot_graph.Rd b/man/plot_graph.Rd index c241e4b7d..20e07396e 100644 --- a/man/plot_graph.Rd +++ b/man/plot_graph.Rd @@ -7,7 +7,7 @@ plot_graph(plan = workplan(), targets = drake::possible_targets(plan), envir = parent.frame(), verbose = TRUE, hook = function(code) { force(code) }, cache = drake::get_cache(), jobs = 1, - parallelism = drake::default_parallelism(), packages = (.packages()), + parallelism = drake::default_parallelism(), packages = rev(.packages()), prework = character(0), config = NULL, file = character(0), selfcontained = FALSE, build_times = TRUE, digits = 3, targets_only = FALSE, split_columns = FALSE, font_size = 20, diff --git a/man/predict_runtime.Rd b/man/predict_runtime.Rd index b168e389b..8bce79488 100644 --- a/man/predict_runtime.Rd +++ b/man/predict_runtime.Rd @@ -9,7 +9,7 @@ predict_runtime(plan = workplan(), from_scratch = FALSE, envir = parent.frame(), verbose = TRUE, hook = function(code) { force(code) }, cache = drake::get_cache(path = path, search = search), parallelism = drake::default_parallelism(), jobs = 1, - future_jobs = jobs, packages = (.packages()), prework = character(0), + future_jobs = jobs, packages = rev(.packages()), prework = character(0), config = NULL, digits = 3, path = getwd(), search = TRUE) } \arguments{ diff --git a/man/rate_limiting_times.Rd b/man/rate_limiting_times.Rd index 7fa030588..7b3e05a1f 100644 --- a/man/rate_limiting_times.Rd +++ b/man/rate_limiting_times.Rd @@ -9,7 +9,7 @@ rate_limiting_times(plan = workplan(), from_scratch = FALSE, envir = parent.frame(), verbose = TRUE, hook = function(code) { force(code) }, cache = drake::get_cache(path = path, search = search), parallelism = drake::default_parallelism(), jobs = 1, - future_jobs = jobs, packages = (.packages()), prework = character(0), + future_jobs = jobs, packages = rev(.packages()), prework = character(0), config = NULL, digits = 3, path = getwd(), search = TRUE) } \arguments{