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

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()
#> $numpy_installed
#> [1] TRUE
#> 
#> $onnxruntime_installed
#> [1] TRUE
#>