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

View source: R/FRR_HelperFxns.R

check_jax_availabilityR Documentation

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", conda = "auto")

Arguments

conda_env

A character string specifying the name of the conda environment. Default is '"fastrerandomize"'.

conda

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

Value

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

Examples

## Not run: 
  check_jax_availability()

## End(Not run)


fastrerandomize documentation built on April 4, 2025, 5:10 a.m.