carmonalab / ProjecTILs

Interpretation of cell states using reference single-cell maps
GNU General Public License v3.0
231 stars 27 forks source link

unable to install scGate or ProjecTILs libraries #41

Closed ashkanshahbandi closed 1 year ago

ashkanshahbandi commented 1 year ago

Hi, I have been trying to install these libraries into R-Studio, but I keep getting the following errors:

remotes::install_github("carmonalab/scGate") Downloading GitHub repo carmonalab/scGate@HEAD These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?

1: All
2: CRAN packages only
3: None
4: stringi (1.7.6 -> 1.7.8) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 1 stringi (1.7.6 -> 1.7.8) [CRAN] Skipping 1 packages not available: UCell Installing 2 packages: stringi, UCell Installing packages into ‘C:/Users/ashka/Documents/renv/library/R-4.1/x86_64-w64-mingw32’ (as ‘lib’ is unspecified)

There is a binary version available but the source version is later: binary source needs_compilation stringi 1.7.6 1.7.8 TRUE

Binaries will be installed trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.1/stringi_1.7.6.zip' Content type 'application/zip' length 16449819 bytes (15.7 MB) downloaded 15.7 MB

package ‘stringi’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\ashka\AppData\Local\Temp\Rtmpc50GBN\downloaded_packages Running R CMD build...

A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages 4: In i.p(...) : installation of package ‘C:/Users/ashka/AppData/Local/Temp/Rtmpc50GBN/file73b0491424d0/scGate_1.2.0.tar.gz’ had non-zero exit status

remotes::install_github("carmonalab/ProjecTILs") Downloading GitHub repo carmonalab/ProjecTILs@HEAD These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?

1: All
2: CRAN packages only
3: None
4: stringi (1.7.6 -> 1.7.8) [CRAN]

Enter one or more numbers, or an empty line to skip updates: Running R CMD build...

I have been able to successfully install the packages on another computer a few months ago, so I'm not sure what the problem is now. Can someone help me with this? Thanks!

mass-a commented 1 year ago

Hello, I can see from your log:

Skipping 1 packages not available: UCell

What version of R and Bioconductor are you using? Note that UCell is available from Bioconductor starting from Bioc-3.15 (R-4.2).

If you are using R<=4.1 you should install an older version of UCell from the github repo:

library(remotes)
remotes::install_github("carmonalab/UCell", ref="v1.3")

Similarly, scGate should be installed from github:

remotes::install_github("carmonalab/scGate")

Best -m

ashkanshahbandi commented 1 year ago

Hello, I can see from your log:

Skipping 1 packages not available: UCell

What version of R and Bioconductor are you using? Note that UCell is available from Bioconductor starting from Bioc-3.15 (R-4.2).

If you are using R<=4.1 you should install an older version of UCell from the github repo:

library(remotes)
remotes::install_github("carmonalab/UCell", ref="v1.3")

Similarly, scGate should be installed from github:

remotes::install_github("carmonalab/scGate")

Best -m

Hi, I am using R.4.2.1

I installed scGate from github but I am now getting the following errors:

remotes::install_github("carmonalab/scGate") Downloading GitHub repo carmonalab/scGate@HEAD Installing 1 packages: GenomeInfoDbData Installing package into ‘C:/Users/ashka/Documents/renv/library/R-4.2/x86_64-w64-mingw32’ (as ‘lib’ is unspecified) installing the source package ‘GenomeInfoDbData’

trying URL 'https://bioconductor.org/packages/3.15/data/annotation/src/contrib/GenomeInfoDbData_1.2.8.tar.gz' Content type 'application/x-gzip' length 11512907 bytes (11.0 MB) downloaded 11.0 MB

The downloaded source packages are in ‘C:\Users\ashka\AppData\Local\Temp\RtmpwpIrnt\downloaded_packages’ Running R CMD build...

mass-a commented 1 year ago

Now your log says that the installation of the GenomeInfoDbData package is failing. Perhaps try to install that package manually? In any case I am not sure why it's being installed, since it is not a dependency of scGate. You also have warnings from renv, so perhaps you have to check if you set up your R project correctly.