install_py_deps_venv: Install Python dependencies for BERTopic (virtualenv route)
Description
Creates (or reuses) a virtualenv and installs bertopic==0.16.0
plus required dependencies via pip. Optionally validates imports.
Usage
install_py_deps_venv(
envname = "r-bertopic",
python = NULL,
reinstall = FALSE,
validate = TRUE,
verbose = TRUE
)
Value
Invisibly returns the path to the Python executable inside the venv.
Arguments
- envname
Character. Virtualenv name. Default "r-bertopic".
- python
Character. Path to a Python executable to create the venv with.
If NULL, tries to find python / python3 on PATH.
- reinstall
Logical. If TRUE, delete existing venv and recreate.
- validate
Logical. If TRUE, bind and validate imports (will skip
if reticulate is already initialized to another Python).
- verbose
Logical. Print progress messages.
Examples
Run this codeif (FALSE) {
install_py_deps_venv(envname = "r-bertopic")
}
Run the code above in your browser using DataLab