Learn R Programming

PortfolioTesteR (version 0.1.4)

run_example: Run an Example Script

Description

Executes an example script bundled in the package inst/examples/ folder.

Usage

run_example(example_name, echo = TRUE)

Value

Invisibly returns NULL. Runs the example for its side effects.

Arguments

example_name

Character scalar with the example filename (e.g. "basic.R").

echo

Logical; print code as it runs (default TRUE).

Examples

Run this code
if (FALSE) { # interactive()
# \donttest{
# Example (requires a real file under inst/examples):
# run_example("basic.R")
# }
}

Run the code above in your browser using DataLab