-
Help
DescriptionI'd really like to call However, I'm finding that the document is rendering even though the pipeline isn't finished. I decided to put There are probably two issues here:
Any advice you can provide would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
By design,
|
Beta Was this translation helpful? Give feedback.
By design,
tar_make(as_job = TRUE)
returns control to you immediately. That way, your R console is free to run e.g.tar_progress_summary()
andtar_visnetwork()
while the pipeline runs in the background. If you want to block the R Markdown document until the pipeline finishes, you could get the PID of the pipeline fromtar_process()
, then use theps
package to check if the process is still alive (from inside yourwhile()
loop).tar_active()
is used to check if the current context is inside a call totar_make()
(either in a target or somewhere in_targets.R
). The main use case is if you want custom code in_targets.R
to know if you are running the pipeline withtar_make()
or just inspecting…