Learn R Programming

EFAfactors (version 1.2.2)

check_python_libraries: 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()

Arguments

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

Run this code
# Check and install necessary Python libraries
check_python_libraries()

Run the code above in your browser using DataLab