View source: R/configure_environment.R
configure_environment | R Documentation |
This function checks if Conda is installed, creates a new Conda environment (if it does not already exist), installs necessary Python packages into the environment, and sets it as the active environment for reticulate.
configure_environment(env_name = "GeneSelectR_env")
env_name |
The name of the Conda environment to be created. Defaults to "GeneSelectR_env". |
A message indicating the status of the environment configuration. If successful, it informs the user that the environment was created and necessary packages were installed. If Conda is not installed or an error occurs, the function stops with an error message. The function also advises the user to restart their R session for the changes to take effect.
# Configure the default environment
configure_environment()
# Configure a custom environment
configure_environment("my_env_name")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.