run: Source an R script, storing rendered output as md or html in...

Description Usage Arguments Examples

View source: R/run.R

Description

Uses render to create a log of the sourced script:

Usage

1
2
3
4
5
6
7
run(script_path, knit_root_dir = getwd())

run_html(script_path, knit_root_dir = getwd())

run_rmd(script_path, knit_root_dir = NULL)

run_rmd_html(script_path, knit_root_dir = NULL)

Arguments

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 root.dir knit option. If NULL then the behavior will follow the knitr default, which is to use the parent directory of the document.

Examples

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")

southwick-associates/workflow documentation built on March 30, 2020, 7:55 a.m.