View source: R/sal2_utilities.R
sal2rmd | R Documentation |
This function takes a SYSargsList object and translate it to SPR workflow template Rmarkdown format.
sal2rmd(sal, out_path = "spr_template.Rmd", rmd_title = "SPR workflow template",
rmd_author = "my name",
rmd_date = "Last update: `r format(Sys.time(), '%d %B, %Y')`",
rmd_output = "html_document",
desc = "This is a workflow template.", verbose = TRUE)
sal |
|
out_path |
string, output file name. |
rmd_title |
string, title of the Rmd. |
rmd_author |
string, author(s) of the Rmd, put all authors in a single character string. |
rmd_date |
string, date header of Rmd. |
rmd_output |
string, output format of Rmd, used in header. |
desc |
string, or character vector of strings, some description text in format Rmarkdown that will be added to the document before the workflow steps start. It can be a single line or multiple lines by providing a character vector, each item is one line. |
verbose |
logical. If |
no return
Le Zhang and Daniela Cassol
file_path <- system.file("extdata/spr_simple_wf.Rmd", package="systemPipeR")
sal <- SPRproject(overwrite = TRUE)
sal <- importWF(sal, file_path)
sal2rmd(sal)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.