orderly_parse_file: Parse the orderly entrypoint script

View source: R/read.R

orderly_parse_fileR Documentation

Parse the orderly entrypoint script

Description

For expert use only.

Usage

orderly_parse_file(path)

orderly_parse_expr(exprs, filename)

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.

Value

Parsed orderly entrypoint script

Examples

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"))

orderly documentation built on Jan. 24, 2026, 1:07 a.m.