Appends Conda settings to .bashrc and .condarc.

term_conda(
  dir = Sys.getenv("HOME"),
  overwrite = FALSE,
  conda_path = NULL,
  auto_activate_base = FALSE
)

Arguments

dir

Character string. .bashrc directory. Defaults to user's home directory.

overwrite

Logical. Overwrite existing .bashrc and .condarc files in dir. If TRUE and if file/s exist/s, the settings are appended to the existing file. If FALSE and if file/s exist/s, none of the settings are written on disk.

conda_path

Character string. Miniconda PATH. If unspecified, defaults to {HOME}/.local/miniconda3.

auto_activate_base

Logical. Auto activate base.

Examples

if (FALSE) { term_conda( dir = getwd(), overwrite = TRUE, conda_path = file.path( Sys.getenv("HOME"), ".local", "miniconda3" ), auto_activate_base = TRUE ) }