Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install isofor #23

Open
statslady opened this issue Apr 1, 2019 · 7 comments
Open

Unable to install isofor #23

statslady opened this issue Apr 1, 2019 · 7 comments

Comments

@statslady
Copy link

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

@mkoohafkan
Copy link

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.

@turingF
Copy link

turingF commented Jun 2, 2019

install_github(repo = "Zelazny7/isofor")
Error in nchar(object, type = "chars") :
invalid multibyte string, element 1

what's wrong?

@gravesee
Copy link
Owner

gravesee commented Jun 2, 2019

Try

install_github(repo = "Zelazny7/isofor", ref="cran")

@turingF
Copy link

turingF commented Jun 2, 2019

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?

@gravesee
Copy link
Owner

gravesee commented Jun 2, 2019

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.

@turingF
Copy link

turingF commented Jun 3, 2019

$ 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:(

@gravesee
Copy link
Owner

gravesee commented Jun 3, 2019

You need to install r build tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants