Unable to install isofor
Hi, I am trying to install the package isofor using the following command. I am using Windows 10 Pro. Here is the code I used to try to install from github. library(devtools) install_github("Zelazny7/isofor")
This is the error I am getting:-
install_github("Zelazny7/isofor") Downloading GitHub repo Zelazny7/isofor@master Installing 1 packages: Rcpp trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/Rcpp_1.0.1.zip' Content type 'application/zip' length 4509148 bytes (4.3 MB) downloaded 4.3 MB
package ‘Rcpp’ successfully unpacked and MD5 sums checked Error: (converted from warning) cannot remove prior installation of package ‘Rcpp’
Please advise. Thanks
this isn't an issue with isofor, it's an issue with Rcpp. Try closing all your R terminals, opening a fresh one (i.e. don't load a workspace) and install Rcpp using install.packages(). Once Rcpp is installed, try installing isofor again.
install_github(repo = "Zelazny7/isofor") Error in nchar(object, type = "chars") : invalid multibyte string, element 1
what's wrong?
Try
install_github(repo = "Zelazny7/isofor", ref="cran")
install_github(repo = "Zelazny7/isofor",ref = "cran") Error in nchar(object, type = "chars") : invalid multibyte string, element 1
it's no use,I use another methods also donnt work:
githubinstall("isofor") Suggestion:
- Zelazny7/isofor Isolation Forest implementation in R Do you want to install the package (Y/n)? Y Error in nchar(object, type = "chars") : invalid multibyte string, element 1 In addition: Warning message: In fread(download_url, sep = "\t", header = FALSE, stringsAsFactors = FALSE, : Found and resolved improper quoting out-of-sample. First healed line 4848: <<Puriney honfleuR "Evening, honfleuR" by Seurat>>. If the fields are not quoted (e.g. field separator does not appear within any field), try quote="" to avoid this warning.
At end I choose to dl the ZIP file and import manually: install.packages("D:/isofor-master.zip", repos = NULL, type = "win.binary")
the file cannot be discerned as a package.
So what should I do?
You can't just download the repository and treat it like a binary package. Clone it, then run:
R CMD install isofor
From the parent directory of the repository. This assumes you have the R build tools installed.
$ R CMD INSTALL isofor-master
- installing to library 'C:/Program Files/R/R-3.6.0/library'
- installing source package 'isofor' ... ** using staged installation ** libs
*** arch - i386 Warning in system(cmd) : 'make' not found ERROR: compilation failed for package 'isofor'
- removing 'C:/Program Files/R/R-3.6.0/library/isofor'
I don't know why it always has error:(
You need to install r build tools