Nanostring-Biostats / InSituType

An R package for performing cell typing in SMI and other single cell data
Other
22 stars 10 forks source link

Installation failure #179

Closed zhiiiyang closed 1 year ago

zhiiiyang commented 1 year ago

Hi @patrickjdanaher, I am having problems with installing this package on my MacBook. I used devtools::install_github("Nanostring-Biostats/InSituType", dependencies = TRUE).

Screen Shot 2022-10-16 at 1 09 31 PM

> sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.6

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.9        compiler_4.2.0    later_1.3.0       urlchecker_1.0.1  prettyunits_1.1.1 profvis_0.3.7    
 [7] remotes_2.4.2     tools_4.2.0       digest_0.6.29     pkgbuild_1.3.1    pkgload_1.3.0     memoise_2.0.1    
[13] lifecycle_1.0.3   rlang_1.0.6       shiny_1.7.2       cli_3.4.1         rstudioapi_0.13   curl_4.3.2       
[19] fastmap_1.1.0     withr_2.5.0       stringr_1.4.1     fs_1.5.2          htmlwidgets_1.5.4 devtools_2.4.4   
[25] rprojroot_2.0.3   glue_1.6.2        R6_2.5.1          processx_3.7.0    sessioninfo_1.2.2 callr_3.7.2      
[31] purrr_0.3.4       magrittr_2.0.3    ps_1.7.1          promises_1.2.0.1  ellipsis_0.3.2    htmltools_0.5.3  
[37] usethis_2.1.6     mime_0.12         xtable_1.8-4      httpuv_1.6.5      stringi_1.7.8     miniUI_0.1.1.1   
[43] cachem_1.0.6      crayon_1.5.2    
davidpross commented 1 year ago

Hi @zhiiiyang, thanks for the heads up. It looks like it might be an issue with compiling the Rcpp part of the package on a MacBook with Apple Silicon. I will test it with my personal laptop and let you know what I find.

davidpross commented 1 year ago

I got this error also @zhiiiyang. It appears to be a common error when installing packages that use Rcpp on Macs with Apple Silicon. I was able to solve it on my machine by following the instructions here.

You probably already have the Xcode tools, so look over the GNU Fortran section and the Apple silicon Macs subsection.

Let me know if that works for you.

zhiiiyang commented 1 year ago

It worked! Thank you, @davidpross.

joaolsf commented 1 year ago

Hi, I get the exact same error, even after installing Xcode and GNU Fortran following the instructions in the link in your comment @davidpross

devtools::install_github("https://github.com/Nanostring-Biostats/InSituType") Downloading GitHub repo Nanostring-Biostats/InSituType@HEAD Skipping 3 packages not available: SingleCellExperiment, SummarizedExperiment, sparseMatrixStats ── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── ✔ checking for file ‘/private/var/folders/0m/4rwt_z816mlcps48xsc34jvc0000gn/T/RtmpIzlMP7/remotesea05a67a7ad/Nanostring-Biostats-InSituType-0834eaf/DESCRIPTION’ ... ─ preparing ‘InSituType’: ✔ checking DESCRIPTION meta-information ... ─ cleaning src ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ building ‘InSituType_1.0.0.tar.gz’

limin321 commented 1 year ago

here

Hi, I have a macOS Monterey with Apple M2 chip. Following the instruction, I installed Xcode and GNU Fortran compiler. When I try to install the Mandatory libraries, I ran into errors in R. Here is my codes.

source("https://mac.R-project.org/bin/install.R")
install.libs("r-base-dev")
Screen Shot 2023-06-16 at 9 38 44 AM

Here is my Mac information:

Screen Shot 2023-06-16 at 9 34 55 AM

Any suggestion on how to solve this issue?

Thanks. LC

davidpross commented 1 year ago

@limin321 it looks like you may be running into a permissions issue, see this note from the r-project page:

NOTE: if you don't have write-permission in the installation location, you may need to make it writable or run sudo R.

What installation error do you get when you try to install InSituType?

yubin-ai commented 4 months ago

I was able to solve my issues with:

  1. install Gnu from https://mac.r-project.org/tools/
  2. install.packages("lsa")
oospina commented 4 months ago

Hello, I recently installed Insitutype on two different machines, and it failed because:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘lsa’ Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted

The installation went without issues after install.packages('lsa'). Should lsa be added to DESCRIPTION?