check_python_libraries: Check and Install Python Libraries (numpy and onnxruntime)

View source: R/check_python_libraries.R

check_python_librariesR Documentation

Check and Install Python Libraries (numpy and onnxruntime)

Description

This function checks whether the Python libraries 'numpy' and 'onnxruntime' are installed. If not, it will prompt the user to decide whether to install them. If the user chooses 'y', the required library will be installed using the ‘reticulate' package. If the user chooses ’n', the installation will be skipped. @seealso DNN_predictor

Usage

check_python_libraries()

Value

A list indicating whether 'numpy' and 'onnxruntime' are installed. The list contains the following logical elements:

numpy_installed

TRUE if 'numpy' is installed, FALSE otherwise.

onnxruntime_installed

TRUE if 'onnxruntime' is installed, FALSE otherwise.

Examples

# Check and install necessary Python libraries
check_python_libraries()


EFAfactors documentation built on June 10, 2025, 9:11 a.m.