You can install MLFlow separately using pip
and then specify the variables in your ~/.Renviron
. If you don't have a .Renviron
file, create one. (Checkout out help("Startup")
in R for more info).
The environment variables you need to set in the .Renviron
file are:
MLFLOW_PYTHON_BIN
and MLFLOW_BIN
. These need to set to the location of your python executable and mlflow executable.
Simply get those by running which python
and which mlflow
after installing mlflow
with pip.
Make sure to restart Rstudio (perhaps try removing mlflow and re-installing the package).
Then there will be no need to run mlflow::install_mlflow()
.