tar_edit: Open the target script file for editing.

View source: R/tar_edit.R

tar_editR Documentation

Open the target script file for editing.


Open the target script file for editing. Requires the usethis package.


tar_edit(script = targets::tar_config_get("script"))



Character of length 1, path to the target script file. Defaults to tar_config_get("script"), which in turn defaults to ⁠_targets.R⁠. When you set this argument, the value of tar_config_get("script") is temporarily changed for the current function call. See tar_script(), tar_config_get(), and tar_config_set() for details about the target script file and how to set it persistently for a project.


The target script file is an R code file that defines the pipeline. The default path is ⁠_targets.R⁠, but the default for the current project can be configured with tar_config_set()

See Also

Other scripts: tar_github_actions(), tar_helper(), tar_helper_raw(), tar_renv(), tar_script()

targets documentation built on May 29, 2024, 11:16 a.m.