term_conda: Setup Conda for Bash

Description Usage Arguments Author(s) Examples

View source: R/term_conda.R

Description

Appends Conda settings to .bashrc and .condarc.

Usage

1
2
3
4
5
6
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.

Author(s)

Ivan Jacob Agaloos Pesigan

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
term_conda(
  dir = getwd(),
  overwrite = TRUE,
  conda_path = file.path(
    Sys.getenv("HOME"),
    ".local",
    "miniconda3"
  ),
  auto_activate_base = TRUE
)

## End(Not run)

jeksterslabds/jeksterslabRterm documentation built on July 13, 2020, 11:43 p.m.