run_r_or_rmd: 'source' code from an R or Rmarkdown file.

Description Usage Arguments Value

View source: R/utilities.R

Description

source code from an R or Rmarkdown file.

Usage

1
run_r_or_rmd(file_name, destination, purl_aggressively)

Arguments

file_name

An RMarkdown file or an R file to be (purled and) run. The file gets run **from the directory it is in**, not from getwd().

destination

Goes into the FREEZR_DESTINATION environmental variable.

purl_aggressively

If TRUE, don't worry about overwriting R files when purling.

Value

Name of input possibly with '.Rmd' changed to '.R'.


ekernf01/freezr documentation built on Feb. 8, 2022, 5:22 a.m.