Run archived R scripts.
tar_source_archive(
package,
files = "R",
envir = targets::tar_option_get("envir"),
change_directory = FALSE
)
NULL
(invisibly)
A scalar character of the package name.
Character vector of file and directory paths to look for R scripts to run. Paths must either be absolute paths or must be relative to the current working directory just before the function call.
Environment to run the scripts. Defaults to
tar_option_get("envir")
, the environment of the pipeline.
Logical, whether to temporarily change the working directory to the directory of each R script before running it.