Skip to contents

Sets the computational backend to use for subsequent operations. If the requested backend is not available, falls back to the best available alternative with a warning.

Usage

set_backend(backend = c("auto", "cpp", "rust", "r"))

Arguments

backend

One of "cpp", "rust", "r", or "auto"

Value

Invisibly returns the selected backend name

Examples

if (FALSE) { # \dontrun{
# Force C++ backend
set_backend("cpp")

# Use Rust backend
set_backend("rust")

# Use pure R (guaranteed to work)
set_backend("r")

# Auto-select best available
set_backend("auto")
} # }