check_python_library_available: Check python library availability

View source: R/utils.R

check_python_library_availableR Documentation

Check python library availability

Description

This function checks if a python library is available. If the library can not be found by the importlib.util.find_spec method, then an error will be throw.

Usage

check_python_library_available(lib_name)

Arguments

lib_name

Character. A library name.

Value

No return. Called for side-effect.

Examples

try(check_python_library_available("numpy"))

autovi documentation built on April 3, 2025, 11:04 p.m.