Skip to contents

Install Required Python Modules

Usage

wbw_install(system = FALSE, force = FALSE, ...)

Arguments

system

boolean, Use a system() call to python -m pip install --user ... instead of reticulate::py_install(). Default: FALSE.

force

boolean, Force update (uninstall/reinstall) and ignore existing installed packages? Default: FALSE. Applies to system=TRUE.

...

Additional arguments passed to reticulate::py_install()

Value

NULL, or try-error (invisibly) on R code execution error.

Details

This function provides a basic wrapper around reticulate::py_install(), except it defaults to using the Python package manager pip and virtual environment. It creates the r-wbw virtual environment in the default location (run reticulate::virtualenv_root() to find it) and installs the required python packages.