set_python_env: Manually select python binary

View source: R/setup.R

set_python_envR Documentation

Manually select python binary

Description

This function allows users to set a custom python binary, virtualenv or conda environment, from which the MIDAS algorithm is run. Users comfortable with reticulate can configure Python manually using reticulate::use_. Note: If users wish to set a custom binary/environment, this must be completed prior to the first call to either train() or complete(). The same is true if users use the reticulate package directly. If users wish to switch to a different Python binaries, R must be restarted prior to calling this function.

Usage

set_python_env(x, type = "auto", ...)

Arguments

x

Character string, path to python binary, or directory of virtualenv, or name of conda environment

type

Character string, specifies whether to set a python binary ("auto"), "virtualenv", or "conda"

...

Further arguments passed to reticulate::use_condaenv()

Value

Boolean indicating whether the custom python environment was activated.


rMIDAS documentation built on Oct. 11, 2023, 5:14 p.m.