virtualenv-tools | R Documentation |
R functions for managing Python virtual environments.
virtualenv_create(
envname = NULL,
python = virtualenv_starter(version),
...,
version = NULL,
packages = "numpy",
requirements = NULL,
force = FALSE,
module = getOption("reticulate.virtualenv.module"),
system_site_packages = getOption("reticulate.virtualenv.system_site_packages", default
= FALSE),
pip_version = getOption("reticulate.virtualenv.pip_version", default = NULL),
setuptools_version = getOption("reticulate.virtualenv.setuptools_version", default =
NULL),
extra = getOption("reticulate.virtualenv.extra", default = NULL)
)
virtualenv_install(
envname = NULL,
packages = NULL,
ignore_installed = FALSE,
pip_options = character(),
requirements = NULL,
...,
python_version = NULL
)
virtualenv_remove(envname = NULL, packages = NULL, confirm = interactive())
virtualenv_list()
virtualenv_root()
virtualenv_python(envname = NULL)
virtualenv_exists(envname = NULL)
virtualenv_starter(version = NULL, all = FALSE)
envname |
The name of, or path to, a Python virtual environment. If this
name contains any slashes, the name will be interpreted as a path; if the
name does not contain slashes, it will be treated as a virtual environment
within |
python |
The path to a Python interpreter, to be used with the created
virtual environment. This can also accept a version constraint like
|
... |
Optional arguments; currently ignored and reserved for future expansion. |
version , python_version |
(string) The version of Python to use when
creating a virtual environment. Python installations will be searched for
using |
packages |
A set of Python packages to install (via |
requirements |
Filepath to a pip requirements file. |
force |
Boolean; force recreating the environment specified by
|
module |
The Python module to be used when creating the virtual
environment – typically, |
system_site_packages |
Boolean; create new virtual environments with the
|
pip_version |
The version of |
setuptools_version |
The version of |
extra |
An optional set of extra command line arguments to be passed.
Arguments should be quoted via |
ignore_installed |
Boolean; ignore previously-installed versions of the
requested packages? (This should normally be |
pip_options |
An optional character vector of additional command line
arguments to be passed to |
confirm |
Boolean; confirm before removing packages or virtual environments? |
all |
If |
Virtual environments are by default located at ~/.virtualenvs
(accessed
with the virtualenv_root()
function). You can change the default location
by defining the RETICULATE_VIRTUALENV_ROOT
or WORKON_HOME
environment variables.
Virtual environments are created from another "starter" or "seed" Python
already installed on the system. Suitable Pythons installed on the system are
found by virtualenv_starter()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.