Description Usage Arguments Examples
Uses render
to create a log of the sourced script:
Use run() with .R files to format the log output in a way that works well for github (markdown)
Use run_html() with .R files for a log output formatted as html, which works better for viewing within Rstudio
Use run_rmd() for .Rmd files to markdown
Use run_rmd_html() for .Rmd files to html
1 2 3 4 5 6 7 |
script_path |
file path of R script to be executed |
knit_root_dir |
The working directory in which to knit the document;
uses knitr's |
1 2 3 4 | # workflow::run("path/to/script.R")
# workflow::run_html("path/to/script.R")
# workflow::run_rmd("path/to/script.Rmd")
# workflow::run_rmd_html("path/to/script.Rmd")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.