View source: R/check_python_libraries.R
check_python_libraries | R Documentation |
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()
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. |
# Check and install necessary Python libraries
check_python_libraries()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.