how to properly install mlflow in R studio? - r

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:
https://github.com/mlflow/mlflow/issues/6738

Related

Unable to Load Built in Dataset

I'm trying to load the catsM dataset, but continue to get this error. I've tried the basics, restarting Rstudio, re-installing the package, etc., but continue to get this error.
install.packages("boot")
Installing package into ‘C:/Users/becky/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/boot_1.3-25.zip'
Content type 'application/zip' length 643617 bytes (628 KB)
downloaded 628 KB
package ‘boot’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\becky\AppData\Local\Temp\RtmpgHPMII\downloaded_packages
> library(boot)
> datasets:catsM
Error: object 'datasets' not found

Bioconductor installation difficulty

recently I've changed a computer into a new one and suddenly I cannot install Bioconductor. I used this code, and this is what I get:
source("https://bioconductor.org/biocLite.R")
Installing package into ‘\\uniwa.uwa.edu.au/userhome/students8/21891458/My Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'https://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5/BiocInstaller_1.30.0.zip'
Content type 'application/zip' length 102191 bytes (99 KB)
downloaded 99 KB
package ‘BiocInstaller’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘BiocInstaller’
The downloaded binary packages are in
C:\Users\21891458\AppData\Local\Temp\Rtmp2DZpRQ\downloaded_packages
'biocLite.R' failed to install 'BiocInstaller', use 'install.packages("BiocInstaller",
repos="https://bioconductor.org/packages/3.7/bioc")' or 'install.packages("BiocInstaller",
repos="http://bioconductor.org/packages/3.7/bioc")'
The problem is it doesn't install it. I tried removing Bioconductor, I tried removing BiocInstaller and I tried even reinstalling Rstudio. None of this helped. What am I doing wrong?

install.packages(...) fails on Windows 10

I am trying to install the dplyr package from Visual Studio 2017. It has a dependency on pillar.
When I perform an install from the command line, I get:
> install.packages('pillar')
Installing package into ‘C:/Users/Jérôme Verstrynge/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
pillar 1.2.1 1.2.2 FALSE
installing the source package ‘pillar’
trying URL 'http://cran.r-project.org/src/contrib/pillar_1.2.2.tar.gz'
Content type 'application/x-gzip' length 64185 bytes (62 KB)
downloaded 62 KB
* installing *source* package 'pillar' ...
** package 'pillar' successfully unpacked and MD5 sums checked
Warning in file(file, if (append) "a" else "w") :
cannot open file 'C:/Users/Jirtme Verstrynge/Documents/R/win-library/3.3/pillar/DESCRIPTION': No such file or directory
Error in file(file, if (append) "a" else "w") :
cannot open the connection
ERROR: installing package DESCRIPTION failed for package 'pillar'
* removing 'C:/Users/Jérôme Verstrynge/Documents/R/win-library/3.3/pillar'
There is a bogus conversion of Jérôme Verstrynge into Jirtme Verstrynge.
How can I work around this?
More information
When I perform Get-WinSystemLocale from Windows 10 PowerShell, I get:
LCID Name DisplayName
---- ---- -----------
2057 en-GB English (United Kingdom)
Sys.getlocale() returns:
[1] "LC_COLLATE=English_United Kingdom.1252;
LC_CTYPE=English_United Kingdom.1252;
LC_MONETARY=English_United Kingdom.1252;
LC_NUMERIC=C;
LC_TIME=English_United Kingdom.1252"
Workaround
I have uninstalled Microsoft R client and reinstalled it from here. The client is now on version 3.4.3.0.
The issue has disappeared for the package pillar, but it is coming back with a package called dendextend while trying to install.packages('seriation').
The error is:
> install.packages('seriation')
Installing package into ‘C:/Users/Jérôme Verstrynge/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependency ‘dendextend’
There is a binary version available but the source version is later:
binary source needs_compilation
dendextend 1.7.0 1.8.0 FALSE
trying URL 'http://cran.r-project.org/bin/windows/contrib/3.4/seriation_1.2-3.zip'
Content type 'application/zip' length 1015954 bytes (992 KB)
downloaded 992 KB
package ‘seriation’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Temp\Rtmpi2lOd8\downloaded_packages
installing the source package ‘dendextend’
trying URL 'http://cran.r-project.org/src/contrib/dendextend_1.8.0.tar.gz'
Content type 'application/x-gzip' length 1758392 bytes (1.7 MB)
downloaded 1.7 MB
* installing *source* package 'dendextend' ...
** package 'dendextend' successfully unpacked and MD5 sums checked
Warning in file(file, if (append) "a" else "w") :
cannot open file 'C:/Users/Jirtme Verstrynge/Documents/R/win-library/3.4/dendextend/DESCRIPTION': No such file or directory
Error in file(file, if (append) "a" else "w") :
cannot open the connection
ERROR: installing package DESCRIPTION failed for package 'dendextend'
* removing 'C:/Users/Jérôme Verstrynge/Documents/R/win-library/3.4/dendextend'
In R CMD INSTALL
The downloaded source packages are in
‘C:\Temp\Rtmpi2lOd8\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/MIE74D~1/RCLIEN~1/R_SERVER/bin/x64/R" CMD INSTALL -l "C:\Users\Jérôme Verstrynge\Documents\R\win-library\3.4" C:\Temp\Rtmpi2lOd8/downloaded_packages/dendextend_1.8.0.tar.gz' had status 1
2: In utils::install.packages(...) :
installation of package ‘dendextend’ had non-zero exit status
>
It seems there is an issue in utils::install.packages(...)
Issue solved
Apparently, on top of re-installing Microsoft R Client, the remaining issue was related to missing binary packages not available on CRAN repositories yet.
I doubt this has anything to do with the pillar package, but perhaps with the fact that this package is installed from source (unlike the default which is to install from binary). This problem will eventually resolve itself as the binary version of pillar 1.2.2 becomes available on your CRAN mirror (it's already there on CRAN and on https://cloud.r-project.org/web/packages/pillar/index.html).
What's the value of getOption("repos") on your system?
The mis-encoding of non-ASCII characters in this particular scenario feels like a problem which is best avoided by choosing an ASCII-only and space-free directory name for your home (e.g. C:\Users\jverstry instead of your current setting). To rule out a problem with Visual Studio, you could try installing the package from RGui or from the R terminal, please double-check that the installation path for the package is the same.

Install error on mxnet

I am trying to install mxnet for use with R Studio on my Windows 10 laptop.
I used these instuctions:
install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("mxnet")
But when I try this:
require(mxnet)
I get the error message:
Loading required package: mxnet
Error : object ‘combine_edges’ is not exported by 'namespace:DiagrammeR'
Here is the complete console:
> install.packages("drat", repos = "https://cran.rstudio.com")
Installing package into ‘C:/Users/bill_/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/drat_0.1.2.zip'
Content type 'application/zip' length 73095 bytes (71 KB)
downloaded 71 KB
package ‘drat’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\bill_\AppData\Local\Temp\RtmpIDZk6c\downloaded_packages
> drat:::addRepo("dmlc")
> install.packages("mxnet")
Installing package into ‘C:/Users/bill_/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://dmlc.github.io/drat/bin/windows/contrib/3.3/mxnet_0.7.zip'
Content type 'application/zip' length 5196542 bytes (5.0 MB)
downloaded 5.0 MB
package ‘mxnet’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\bill_\AppData\Local\Temp\RtmpIDZk6c\downloaded_packages
> require(mxnet)
Loading required package: mxnet
Error : object ‘combine_edges’ is not exported by 'namespace:DiagrammeR'
>
Can anyone help?
Thanks in advance.
SOLUTION FOUND PER AXEMAN'S SUGGESTION...
# version 0.9.0 of DiagrammeR won't work with mxnet at this time (20170104)
require(devtools)
install_version("DiagrammeR", version = "0.8.1", repos = "http://cran.us.r-project.org")
With latest repo, you should be able to complete installation. They have removed references to "combine_edges" which was removed from latest DiagrammeR.

there is no package called 'BiocInstaller'

Whenever I try to install a new package I'm getting this error:
source("http://bioconductor.org/biocLite.R")
Warning in install.packages :
package ‘BiocInstaller’ is not available (for R version 3.0.2 RC)
Installing package into ‘/home/hd-master/R/x86_64-unknown-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://www.bioconductor.org/packages/2.13/bioc/src/contrib/BiocInstaller_1.12.0.tar.gz'
Content type 'application/x-gzip' length 13509 bytes (13 Kb)
opened URL
==================================================
downloaded 13 Kb
Error in library(BiocInstaller) :
there is no package called 'BiocInstaller'
Execution halted
Install R-3.0.2 (not RC).
Try starting R as follows: R --vanilla
See if you are pointing to a weird mirror. What is the output of getOption("repos")?
Try this: install.packages("BiocInstaller", repos="http://bioconductor.org/packages/2.13/bioc")

Resources