wflow_open
is a convenience function to make it easier to begin
working, especially when starting a new analysis. It will create a new file
if necessary using the workflowr template, set the working directory to
the analysis directory, and open the file(s) in RStudio. The latter two side
effects can be turned off if desired.
If you would like to create a file using the workflowr template for an
analysis that is not part of a workflowr project, set standalone =
TRUE
to directly embed the shared configuration chunks into the document and
set project = NULL
to prevent wflow_open
from searching for an
analysis directory.
If you are not using RStudio and are comfortable with relative paths and
managing your working directory, you could instead directly use the
underlying commands. First set the working directory to the analysis
directory of your workflowr project. Second create the new file with
draft("model-data.Rmd", template = "analysis", package = "workflowr",
edit = FALSE)
. Third open the file in your text editor.