use_targets | R Documentation |
Set up targets
for an existing project.
use_targets(
script = targets::tar_config_get("script"),
open = interactive(),
overwrite = FALSE,
scheduler = NULL,
job_name = NULL
)
script |
Character of length 1, where to write
the target script file. Defaults to |
open |
Logical of length 1, whether to open the file for editing in the RStudio IDE. |
overwrite |
Logical of length 1, |
scheduler |
Deprecated in version 1.5.0.9001 (2024-02-12). |
job_name |
Deprecated in version 1.5.0.9001 (2024-02-12). |
use_targets()
writes an example _targets.R
script to
get started with a targets
pipeline for the current project.
Follow the comments in this script to adapt it as needed.
For more information, please visit
https://books.ropensci.org/targets/walkthrough.html.
NULL
(invisibly).
Other help:
tar_reprex()
,
targets-package
,
use_targets_rmd()
if (identical(Sys.getenv("TAR_INTERACTIVE_EXAMPLES"), "true")) {
tar_dir({ # tar_dir() runs code from a temp dir for CRAN.
use_targets(open = FALSE)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.