set_python_env {rMIDAS} | R 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 |
Value
Boolean indicating whether the custom python environment was activated.