PrepareEnv | R Documentation |
This function prepares the SCP Python environment by installing the required dependencies and setting up the environment.
PrepareEnv(
conda = "auto",
miniconda_repo = "https://repo.anaconda.com/miniconda",
envname = NULL,
version = "3.8-1",
force = FALSE,
...
)
conda |
The path to a conda executable. Use |
miniconda_repo |
Repositories for miniconda. Default is |
envname |
The name of a conda environment. |
version |
A character vector specifying the version of the environment (default is "3.8-1"). |
force |
Whether to force a new environment to be created. If |
... |
Other arguments passed to |
This function prepares the SCP Python environment by checking if conda is installed, creating a new conda environment if needed, installing the required packages, and setting up the Python environment for use with SCP.
In order to create the environment, this function requires the path to the conda binary. If conda
is set to "auto"
, it will attempt to automatically find the conda binary.
If a conda environment with the specified name already exists and force
is set to FALSE
, the function will use the existing environment. If force
set to TRUE
, the existing environment will be recreated. Note that recreating the environment will remove any existing data in the environment.
The function also checks if the package versions in the environment meet the requirements specified by the version
parameter. The default is 3.8-1
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.