get_env_dir: Retrieve Path To Environment

View source: R/get_env_dir.R

get_env_dirR Documentation

Retrieve Path To Environment

Description

Retrieve path to where environment should be created. Note: It retrieves the Path even if the environment is not created yet.

Usage

get_env_dir(env_name = "condathis-env")

Arguments

env_name

Character. Name of the Conda environment where the packages are going to be installed. Defaults to 'condathis-env'.

Value

A character string indicating the path where environments will be created.

Examples

condathis::with_sandbox_dir({
  # Get the default environment directory
  condathis::get_env_dir()
  #> "/path/to/condathis/envs/condathis-env"

  # Get the directory for a specific environment
  condathis::get_env_dir("my-env")
  #> "/path/to/condathis/envs/my-env"
})


condathis documentation built on April 12, 2025, 2:01 a.m.