Initialises Julia against the pinned Julia project the package ships in `inst/julia`, and loads the bridge code. Idempotent: subsequent calls are no-ops once setup has succeeded. Heavy lifting is delegated to [juliabridge::julia_ready()] and [juliabridge::julia_load_bridge()].

setup_ForecastBaselines(verbose = TRUE)

Arguments

verbose

Whether to print progress messages.

Value

Invisibly returns `TRUE` if setup succeeded.

Details

Note: this is *not* called from `.onLoad`. Eager Julia initialisation on package load can crash R during attach when interacting with other compiled backends (e.g. Stan). Call this function explicitly, or rely on the lazy [check_setup()] guard inside the package's exported functions.

Examples

if (FALSE) { # \dontrun{
setup_ForecastBaselines()
} # }