This function initializes Julia, installs ForecastBaselines.jl if needed, and loads the package. Must be called before using any forecasting functions.

setup_ForecastBaselines(
  JULIA_HOME = NULL,
  install_package = TRUE,
  rebuild = FALSE,
  verbose = TRUE
)

Arguments

JULIA_HOME

Path to Julia installation (optional, will auto-detect if not provided)

install_package

Whether to install ForecastBaselines.jl if not already installed

rebuild

Whether to rebuild the Julia system image

verbose

Whether to print verbose output during setup

Value

Invisibly returns TRUE if setup was successful

Examples

if (FALSE) { # \dontrun{
# Basic setup (auto-detect Julia)
setup_ForecastBaselines()

# Specify Julia location
setup_ForecastBaselines(JULIA_HOME = "/usr/local/julia/bin")
} # }