SaveEnvironments: Export Conda environment.

Description Usage Arguments Value Author(s) Examples

Description

Export Conda environment

Import Conda environment

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
export_CondaEnv(
  env_name,
  yml_export = NULL,
  pathToMiniConda = NULL,
  depends = TRUE
)

import_CondaEnv(
  yml_import,
  name = NULL,
  pathToMiniConda = NULL,
  install = TRUE,
  channels = NULL
)

Arguments

env_name

Name of environment you want to save

yml_export

Destination for exported environment yml file

pathToMiniConda

NULL Path to miniconda installation

depends

if FALSE will only include packages explicitly installed and not dependencies

yml_import

conda environment yml file

name

Name of the environment to create.

install

TRUE/FALSE whether to install miniconda at path if it doesn't exist.

channels

Additional channels for miniconda (bioconda defaults and conda-forge are included automatically)

Value

Nothing returned. Output written to file.

Nothing returned. Output written to file.

Author(s)

Matt Paul

Matt Paul

Examples

1
2
3
4
testYML <- system.file("extdata/HerperTestPkg_0.1.0.yml", package = "Herper")
condaDir <- file.path(tempdir(), "r-miniconda")
import_CondaEnv(testYML, "herper_test", pathToMiniConda = condaDir)
export_CondaEnv("herper_test", yml_export = tempfile(), pathToMiniConda = condaDir)

Herper documentation built on Feb. 28, 2021, 2:02 a.m.