installed_py_pangoling | R Documentation |
pangoling
are installedThis function verifies whether the necessary Python modules (transformers
and torch
) are available in the current Python environment.
installed_py_pangoling()
A logical value: TRUE
if both transformers
and torch
are
installed and accessible, otherwise FALSE
.
Other helper functions:
install_py_pangoling()
,
set_cache_folder()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.