Learn R Programming

orderly (version 2.0.0)

orderly_parse_file: Parse the orderly entrypoint script

Description

For expert use only.

Usage

orderly_parse_file(path)

orderly_parse_expr(exprs, filename)

Value

Parsed orderly entrypoint script

Arguments

path

Path to orderly_* script

exprs

Parsed AST from orderly_* script

filename

Name of orderly_* file to include in metadata

Details

Parses details of any calls to the orderly_ in-script functions into intermediate representation for downstream use. Also validates that any calls to orderly_* in-script functions are well-formed.

Examples

Run this code
path <- orderly_example()
# About the simplest case
orderly_parse_file(file.path(path, "src", "data", "data.R"))

# Find out about parameters
orderly_parse_file(file.path(path, "src", "parameters", "parameters.R"))

# Find out about dependencies:
orderly_parse_file(file.path(path, "src", "depends", "depends.R"))

Run the code above in your browser using DataLab