View source: R/create_conda_env.R
create_conda_env | R Documentation |
Create a Conda environment if needed. If that environment already exists, nothing happens.
create_conda_env( ormr_folder_name = get_default_ormr_folder_name(), python_version = get_default_python_version(), verbose = FALSE )
ormr_folder_name |
can be either |
python_version |
the Python version,
which is 3.6 by default
(thanks to https://stackoverflow.com/a/69978354),
as |
verbose |
the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid. |
Nothing
the output of this function cannot be silenced, thanks to install_miniconda
Richèl J.C. Bilderbeek
if (is_conda_installed()) { # Install to a temporary folder ormr_folder_name <- tempfile() create_conda_env(ormr_folder_name = ormr_folder_name) # Clean up unlink(ormr_folder_name, recursive = TRUE) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.