Initialises Julia, installs ForecastBaselines.jl if needed, and loads the bridge code. Idempotent: subsequent calls are no-ops once setup has succeeded. Heavy lifting is delegated to [juliaready::julia_ready()] and [juliaready::julia_load_bridge()].

setup_ForecastBaselines(install_package = TRUE, verbose = TRUE)

Arguments

install_package

Whether to install ForecastBaselines.jl if not already installed.

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()
} # }