Learn R Programming

fastrerandomize (version 0.3)

check_jax_availability: Check if 'Python' and 'JAX' are available

Description

This function checks if 'Python' and 'JAX' can be accessed via `reticulate`. If not, it returns `NULL` and prints a message suggesting to run `build_backend()`.

Usage

check_jax_availability(conda_env = "fastrerandomize_env", conda = "auto")

Value

Returns `TRUE` (invisibly) if both 'Python' and 'JAX' are available; otherwise returns `NULL`.

Arguments

conda_env

A character string specifying the name of the conda environment. Default is `"fastrerandomize_env"`.

conda

The path to a conda executable, or `"auto"`. Default is `"auto"`.

Examples

Run this code
if (FALSE) {
  check_jax_availability()
}

Run the code above in your browser using DataLab