use_workflow()creates a workflow file from a template in the tiltWorkflows package.
Usage
use_workflow(template, save_as = template, open = rlang::is_interactive())Arguments
- template
Path to template file relative to
templates/directory withinpackage; see details.- save_as
Path of file to create, relative to root of active project. Defaults to
template- open
Open the newly created file for editing? Happens in RStudio, if applicable, or via
utils::file.edit()otherwise.
Examples
if (FALSE) { # rlang::is_interactive()
use_workflow("profile_emissions.Rmd")
file.exists("profile_emissions.Rmd")
# Cleanup
unlink("profile_emissions.Rmd")
}