Python objects may be loaded into R. However, it requires 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.

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

Szymon Maksymiuk

Examples

if (FALSE) {
  create_env(system.file("extdata", "testing_environment.yml", package = "DALEXtra"))
}