library

Runs a library file for definitions and reusable setup code.

Target function

Signature

1library(path::string)

Runs a library file for definitions and reusable setup code.

library is a global callable that can be used wherever an expression is valid. library appears in project setup, source loading, or packaging code. Keep paths explicit, load reusable definitions once, and choose template mode only when literal output is part of the file.

Parameters

path
Required value of type string. Supply path positionally unless the signature shows a keyword form.

Examples

Basic call

1library('/lib/methods.lasso')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.