installation – how to properly install mlflow in R studio?

I followed the official document but found error

> install.package("mlflow")
Error in install.package("mlflow") : 
  could not find function "install.package"
> install.packages("mlflow")
Installing package into ‘C:/Users/fzhu/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/zip' length 237435 bytes (231 KB)
downloaded 231 KB

package ‘mlflow’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
> mlflow::install_mlflow()
Error in mlflow_conda_bin() : 
  Unable to find conda binary. Is Anaconda installed?
  If you are not using conda, you can set the environment variable MLFLOW_PYTHON_BIN to the path of your python executable.
> Sys.getenv("MLFLOW_PYTHON_BIN")
[1] "C:\\py310\\python.exe"
> Sys.getenv("MLFLOW_BIN")
[1] "C:\\py310\\Scripts\\mlflow"

any help is appreciated!


Read more here: Source link