View source: R/linewise_utilities.R
importWF | R Documentation |
Import R Markdown file as workflow. Each R code chunk will be set as a step in the
workflow. This operation requires a few extra settings on the R Markdown chunk
options, to include a particular code chunk in the workflow analysis. Please check
Details
.
importWF(
sysargs, file_path, ignore_eval = TRUE,
update = FALSE, confirm = FALSE,
check_tool = !update,
check_module = check_tool,
verbose = TRUE
)
sysargs |
|
file_path |
string, file path of the workflow file. |
ignore_eval |
logical, treat all R chunks' |
update |
logical, If you have ever changed the template and want to sync new changes,
turn |
confirm |
logical, Only useful when you combine |
check_tool |
logical, whether to check all required tools by this workflow are in PATH (callable).
It uses the |
check_module |
logical, whether to check all required modules are available. To do so, a modular system has be to installed.
If no modular system, this check will be skipped, even if |
verbose |
logical, print out verbose message while function running. |
To include a particular code chunk from the R Markdown file in the workflow analysis, please use the following code chunk options:
- spr = 'r'
: for code chunks with R code lines;
- spr = 'sysargs'
: for code chunks with an 'SYSargsList' object;
- spr.dep = <StepName>
: for specify the previous dependency. If this options
is not found, it will automaticly add the previous step.
For spr = 'sysargs'
, the last object assigned needs to be the
SYSargsList
.
If the spr
flag is not found, the R chunk will not be included in the workflow.
It is required to start a project using SPRproject()
function, and use the
object to populate the steps from R Markdown file.
importWF
will return an SYSargsList
object.
Le Zhang and Daniela Cassol
SYSargsList
renderReport
file_path <- system.file("extdata/spr_simple_lw.Rmd", package="systemPipeR")
sal <- SPRproject(overwrite = TRUE)
sal <- importWF(sal, file_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.