create_env: Create your conda virtual env with DALEX

Description Usage Arguments Value Author(s) Examples

View source: R/create_env.R

Description

Python objects may be loaded into R. However, it requiers versions of the Python and libraries to match between both machines. This functions allow user to create conda virtual environment based on provided .yml file.

Usage

1
create_env(yml, condaenv)

Arguments

yml

a path to the .yml file. If OS is Windows conda has to be added to the PATH first

condaenv

path to main conda folder. If OS is Unix You may want to specify it. When passed with windows, param will be omitted.

Value

Name of created virtual env.

Author(s)

Szymon Maksymiuk

Examples

1
2
3
4
5
if(DALEXtra:::is_conda()) {
  create_env(system.file("extdata", "testing_environment.yml", package = "DALEXtra"))
} else {
  "conda is required"
}

ModelOriented/DALEXtra documentation built on March 29, 2020, 7:49 a.m.