configure_environment {GeneSelectR}R Documentation

Configure Python Environment for GeneSelectR

Description

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.

Usage

configure_environment(env_name = "GeneSelectR_env")

Arguments

env_name

The name of the Conda environment to be created. Defaults to "GeneSelectR_env".

Value

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.

Examples


# Configure the default environment
configure_environment()

# Configure a custom environment
configure_environment("my_env_name")



[Package GeneSelectR version 1.0.1 Index]