R functions for managing Python virtual environments
virtualenv_list()virtualenv_root()
virtualenv_create(envname)
virtualenv_install(envname, packages, ignore_installed = FALSE)
virtualenv_remove(envname, packages = NULL, confirm = interactive())
virtualenv_python(envname)
Name of virtual environment
Character vector with package names to install or remove.
Ignore any previously installed versions of packages
Confirm before removing packages or virtual environments
virtualenv_list()
returns a chracter vector with the names
of available virtual environments. virtualenv_root()
returns the
root directory for virtual environments.
Virtual environments are by default located at ~/.virtualenvs
. You can change this
behavior by defining the WORKON_HOME
environment variable.
Virtual environment functions are not supported on Windows (the use of conda environments is recommended on Windows).