Closed KoichiHashikawa closed 4 years ago
Also
I failed to install HDF5 with following errors
Error in parse(text = x, srcfile = src):
Installing HDF5 the way it's described in the README.md is not going to work for Windows. Try to install HDF5 using prebuilt libraries available at https://www.hdfgroup.org/downloads/hdf5/.
Thanks. Also, doMC cannot be installed may be also because I am using Windows.
Does subsequent analysis depend on doMC or if there are any substitution?
I tried Mac computer, but saw an error.
Error in parse(text = x, srcfile = src):
wget
is not going to work neither on Mac OS except if you have installed it (see https://www.mkyong.com/mac/wget-on-mac-os-x/).I have updated the README.md to use curl
which should be compatible by default on Linux and MacOS machines.
doMC
does not work for Windows and it is not required by SCopeLoomR
so you can omit its installation. hdf5r
requires HDF5 library to be installed. So if you can install the R package correctly, then it should be fine. The problem seems that installation causes corruption in some packages that I already installed via installation of Seurat.
[1] '1.1.0'
[1] '0.12.18'
package 'mixtools' successfully unpacked and MD5 sums checked
Warning message: "cannot remove prior installation of package 'mixtools'"
and packageVersion("mixtools") gives Error in packageVersion("mixtools"): package 'mixtools' not found
BioC_mirror: https://bioconductor.org Using Bioconductor 3.7 (BiocInstaller 1.30.0), R 3.5.1 (2018-07-02). Installing package(s) 'NMF', 'Rtsne', 'R2HTML'
package 'NMF' successfully unpacked and MD5 sums checked package 'Rtsne' successfully unpacked and MD5 sums checked
Warning message: "cannot remove prior installation of package 'Rtsne'"
package 'R2HTML' successfully unpacked and MD5 sums checked
and packageVersion( "Rtsne") gives Error in packageVersion("Rtsne"): package 'Rtsne' not found
Downloading GitHub repo aertslab/SCopeLoomR@master
Rcpp (NA -> 1.0.0 ) [CRAN] rjson (NA -> 0.2.20 ) [CRAN] rlist (NA -> 0.4.6.1) [CRAN]
Installing 3 packages: Rcpp, rjson, rlist
package 'Rcpp' successfully unpacked and MD5 sums checked
Error: (converted from warning) cannot remove prior installation of package 'Rcpp' Traceback:
and now packageVersion("Rcpp") gives Error in packageVersion("Rcpp"): package 'Rcpp' not found Traceback:
corruption of Rcpp caused malfunction of R in jupyternotebook I need to reinstall everything to fix this.
Can you really successfully install SCopeLoomR and SCENIC on PC of windows 10?
thanks for reading this long comment!
I will have to test this on a Windows machine to try to reproduce your error. Meanwhile, I would consider to check this post https://stackoverflow.com/questions/26570912/error-in-installation-a-r-package. This could potentially solve the multiple "cannot remove prior installation of package 'X'" issues you encounter.
Thanks for the advice. In addition, I used my Mac computer to install ScopeLoomR, but got the following error.
Downloading GitHub repo aertslab/SCopeLoomR@master from URL https://api.github.com/repos/aertslab/SCopeLoomR/zipball/master Installing SCopeLoomR '/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ \ --no-save --no-restore --quiet CMD INSTALL \ '/private/var/folders/hd/jfvg2qw96kn9xd2bqqjjshhm0000gn/T/RtmpqdHEzT/devtools10f0b225a9501/aertslab-SCopeLoomR-b999d1e' \ --library='/Library/Frameworks/R.framework/Versions/3.5/Resources/library' \ --install-tests
Downloading GitHub repo aertslab/SCopeLoomR@master from URL https://api.github.com/repos/aertslab/SCopeLoomR/zipball/master Installing SCopeLoomR '/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL '/private/var/folders/hd/jfvg2qw96kn9xd2bqqjjshhm0000gn/T/RtmpqdHEzT/devtools10f0b225a9501/aertslab-SCopeLoomR-b999d1e' --library='/Library/Frameworks/R.framework/Versions/3.5/Resources/library' --install-tests
This doesn't seem to be an error...
packageVersion("aertslab/SCopeLoomR") gives Error in packageVersion("aertslab/SCopeLoomR"): package ‘aertslab/SCopeLoomR’ not found
Seems to be common errors such as in https://github.com/catavallejos/BASiCS/issues/9
My colleague also failed to install SCopeLoomR and SCENIC.
packageVersion("aertslab/SCopeLoomR")
is not going to work. You should do packageVersion("SCopeLoomR")
There's been an issue regarding installation of SCopeLoomR
in a recent post. Maybe try this to install SCopeLoomR
like this:
install_github("aertslab/SCopeLoomR", repos = c(CRAN = "https://cran.cnr.berkeley.edu/"))
Regarding SCENIC, It seems that recent versions of feather is causing some problems on Windows.
Try to install first feather
(version 0.3.1) using this snippet before installing SCENIC
:
install.packages("https://cran.r-project.org/bin/windows/contrib/3.4/feather_0.3.1.zip", repos=NULL)
Thanks for the advice. I now successfully installed ScopeLoomR and SCENIC in the my Mac computer.
But I still had trouble with installing ScopeLoomR (error is "Error: (converted from warning) cannot remove prior installation of package 'Rcpp"). It tries to install Rcpp package that causes crashing my R. If there is a way to install ScopeLoomR without installing Rcpp, it might help.
SCopeLoomR
is not dependent on Rcpp
. I think the problem arise from devtools
which requires Rcpp
. Maybe devtools
wasn't not correctly installed.. Maybe try to remove Rcpp package and devtools and reinstall devtools:
remove.packages("devtools)
install.packages("devtools")
devtools::install_github("aertslab/SCopeLoomR")
install.packages("SCopeLoomR_0.3.1.tar.gz", repos = NULL, type="source")
Thanks for the advice!
As you pointed out, it seems that install_github crashes R in my case. (I did not notice this as I used install.packages for most of packages). Some people also had similar issues https://github.com/r-lib/devtools/issues/524 I tried some of the procedures posted there, but so far I did not have any lucks.
I also tried install.packages("path to the file/SCopeLoomR_0.3.1.tar.gz", repos = NULL, type="source") , but I got Warning message in install.packages("F:/UNC/Dropseq/software/test/SCopeLoomR_0.3.1.tar.gz", : "installation of package 'F:/UNC/Dropseq/software/test/SCopeLoomR_0.3.1.tar.gz' had non-zero exit status" I looked into this issues, but have not had any luck.
I will use my Mac computer for SCENIC in the mean time to solve this issue.
I finally installed ScopeLoomR through Rcmd INSTALL Desktop/SCopeLoomR_0.3.1.tar.gz at localhost command window
Do you also have the binary download link for SCENIC? It seems that I do not have luck for SCENIC too from github. thanks.
When installing, I have following errors and failed.
Downloading GitHub repo aertslab/SCopeLoomR@master from URL https://api.github.com/repos/aertslab/SCopeLoomR/zipball/master Installing SCopeLoomR Installing 1 package: rjson Warning message: "unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5/PACKAGES'"