Skip to contents
  • 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 within package; 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.

Value

A logical vector indicating if file was modified.

Examples

if (FALSE) { # rlang::is_interactive()
use_workflow("profile_emissions.Rmd")

file.exists("profile_emissions.Rmd")

# Cleanup
unlink("profile_emissions.Rmd")
}