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 'https://cran.rstudio.com/bin/windows/contrib/4.2/mlflow_1.28.0.zip'
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
    C:\Users\fzhu\AppData\Local\Temp\RtmpgzY6Uy\downloaded_packages
> 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!

refer:
github.com/mlflow/mlflow/issues/6738

Read more here: Source link