Functions for extending sourcing features
Usage
ksource(file, ..., quiet = TRUE, cd = FALSE, env = parent.frame())
try_source(file, cd = FALSE, ...)
try_ksource(file, ...)Arguments
- file
An R or Rmd file.
- ...
Additional arguments passed to
base::source()- quiet
Logical; Determines whether to apply silence to
knitr::purl()- cd
Logical; if TRUE, the R working directory is temporarily changed to the directory containing file for evaluating
- env
An environment determining where the parsed expressions are evaluated