tar_active | R Documentation |
Return TRUE
if called in a target or _targets.R
and
the pipeline is running.
tar_active()
Logical of length 1, TRUE
if called in a target or _targets.R
and the pipeline is running (FALSE
otherwise).
Other utilities:
tar_call()
,
tar_cancel()
,
tar_definition()
,
tar_envir()
,
tar_group()
,
tar_name()
,
tar_path_script_support()
,
tar_path_script()
,
tar_path_store()
,
tar_path_target()
,
tar_path()
,
tar_seed()
,
tar_source()
,
tar_store()
if (identical(Sys.getenv("TAR_EXAMPLES"), "true")) { tar_dir({ # tar_dir() runs code from a temporary directory. tar_active() # FALSE tar_script({ message("Pipeline running? ", tar_active()) tar_target(x, tar_active()) }) tar_manifest() # prints "Pipeline running? FALSE" tar_make() # prints "pipeline running? TRUE" tar_read(x) # TRUE }) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.