Learn R Programming

BERTopic (version 0.1.0)

install_py_deps: Install Python dependencies for BERTopic (auto route)

Description

Tries Conda first (recommended). If Conda is unavailable, falls back to virtualenv. On success, prints which route was used.

Usage

install_py_deps(
  envname = "r-bertopic",
  python_version = "3.10",
  python = NULL,
  reinstall = FALSE,
  validate = TRUE,
  verbose = TRUE
)

Value

Invisibly, the path to the selected Python interpreter.

Arguments

envname

Character. Environment name (both routes). Default "r-bertopic".

python_version

Character. Python version for Conda route, e.g. "3.10".

python

Optional path to python for virtualenv route.

reinstall

Logical. Recreate the environment if it exists (route-specific).

validate

Logical. Attempt to validate imports if reticulate is not already initialized to another Python.

verbose

Logical. Print progress.