You can customize the behavior of
with special environment variables. The sections in this help file
describe each environment variable, and the
lists their current values.
tar_envvars(unset = "")
Character of length 1, value to return for any environment variable that is not set.
If you modify environment variables, please set them
.Renviron file so you do not lose your
configuration when you restart your R session.
Modify the project-level
.Renviron file with
usethis::edit_r_environ(scope = "project"). Restart
your R session after you are done editing.
A data frame with one row per environment variable
and columns with the name and current value of each.
An unset environment variable will have a value of
by default. (Customize with the
TAR_ASK environment variable accepts values
TAR_ASK is not set, or if it is set to
targets asks permission in a menu
before overwriting certain files, such as the target script file
targets overwrites the old files
with the new ones without asking. Once you are comfortable with
tar_github_actions(), and similar functions,
you can safely set
"false" in either a project-level
TAR_WARN environment variable accepts values
TAR_WARN is not set, or if it is set to
targets throws warnings in certain edge cases,
such as target/global name conflicts and dangerous use of
does not throw warnings in these cases.
These warnings are harmless, and they can detect potentially serious
issues with your pipeline, so please do not set
unless your use case absolutely requires it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.