,

Skip to contents

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

if (FALSE) { # \dontrun{
if (installed_py_pangoling()) {
 message("Python dependencies are installed.")
} else {
 warning("Python dependencies are missing. Please install `torch` and `transformers`.")
}
} # }