Skip to contents

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"))