sourcing: Sourcing extensions

Description Usage Arguments Details Value

Description

Functions for extending sourcing features

Usage

1
2
3
4
5

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

Details

try_source() will output an error message rather than completely preventing the execution. This can be useful for when a script calls on multiple, independent files to be sourced and a single failure shouldn't prevent the entire run to fail as well.

Value


mark documentation built on July 16, 2021, 9:07 a.m.