Learn R Programming

RegimeChange (version 0.1.1)

init_julia: Initialize Julia Backend

Description

Explicitly initialize the Julia backend for improved performance. This loads the RegimeChangeJulia module and makes Julia functions available.

Usage

init_julia(force = FALSE, num_threads = NULL)

Value

Logical indicating success (invisibly).

Arguments

force

Logical. Force reinitialization even if already initialized. Default is FALSE.

num_threads

Integer or NULL. Number of Julia threads to use. Default is NULL (auto-detect).

Examples

Run this code
if (FALSE) {
init_julia()
julia_available()
result <- detect_regimes(data, method = "pelt")
}

Run the code above in your browser using DataLab