Learn R Programming

condathis (version 0.1.1)

get_env_dir: 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")

Value

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

Arguments

env_name

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

Examples

Run this code
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"
})

Run the code above in your browser using DataLab