installed_py_pangoling: Check if the required Python dependencies for 'pangoling' are...

View source: R/utils.R

installed_py_pangolingR Documentation

Check if the required Python dependencies for pangoling are installed

Description

This function verifies whether the necessary Python modules (transformers and torch) are available in the current Python environment.

Usage

installed_py_pangoling()

Value

A logical value: TRUE if both transformers and torch are installed and accessible, otherwise FALSE.

See Also

Other helper functions: install_py_pangoling(), set_cache_folder()

Examples

## Not run: 
if (installed_py_pangoling()) {
 message("Python dependencies are installed.")
} else {
 warning("Python dependencies are missing. Please install `torch` and `transformers`.")
}

## End(Not run)

pangoling documentation built on April 11, 2025, 6:16 p.m.