library(Seurat) shows error: package or namespace load failed for ‘Seurat’ in .doLoadActions(where, attach)
1
0
Entering edit mode
10 weeks ago
Wei-Ting • 0

Hi- I am having trouble with loading the Seurat Package. install.packages("Seurat") works. But loading the library shows error. Can someone please help me solve the problem?

library(Seurat)

Error: package or namespace load failed for ‘Seurat’ in .doLoadActions(where, attach): error in load action .__A__.1 for package RcppAnnoy: loadModule(module = "AnnoyAngular", what = TRUE, env = ns, loadNow = TRUE): Unable to load module "AnnoyAngular": function 'Rcpp_precious_remove' not provided by package 'Rcpp'

Seurat • 666 views
ADD COMMENT
0
Entering edit mode

Hi, can you please show the output after you run:

install.packages("Seurat")

Also, please show the output of:

sessionInfo()

Be sure, also, to restart your R session and computer.

ADD REPLY
0
Entering edit mode

Hi-

Here is the output:

install.packages("Seurat")

Installing package into ‘\ion/homedir$/wyu/My Documents/R/win-library/4.1’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/Seurat_4.0.3.zip' Content type 'application/zip' length 2766883 bytes (2.6 MB) downloaded 2.6 MB

package ‘Seurat’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\wyu\AppData\Local\Temp\RtmpiSVxFD\downloaded_packages

sessionInfo()

R version 4.1.0 (2021-05-18) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252

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

loaded via a namespace (and not attached): [1] compiler_4.1.0 tools_4.1.0 data.table_1.14.0

ADD REPLY
0
Entering edit mode

Hi! I'm getting the exact same error when installing the 4.0.1 binary. I can't compile the source version (4.0.3) since it returns the same error:

Error in .doLoadActions(where, attach) : 
  error in load action .__A__.1 for package RcppAnnoy: loadModule(module = "AnnoyAngular", what = TRUE, env = ns, loadNow = TRUE): Unable to load module "AnnoyAngular": function 'Rcpp_precious_remove' not provided by package 'Rcpp'
Calls: <Anonymous> ... asNamespace -> loadNamespace -> <Anonymous> -> .doLoadActions
Execution halted

My session info:

R version 4.1.0 (2021-05-18)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.5

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/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] utils base 

loaded via a namespace (and not attached):
 [1] compiler_4.1.0    pillar_1.6.1      tools_4.1.0       methods_4.1.0     grDevices_4.1.0   digest_0.6.27     tibble_3.1.2     
 [8] gtable_0.3.0      lifecycle_1.0.0   pkgconfig_2.0.3   rlang_0.4.11      cli_2.5.0         xfun_0.24         fastmap_1.1.0    
[15] knitr_1.33        withr_2.4.2       generics_0.1.0    vctrs_0.3.8       graphics_4.1.0    stats_4.1.0       tidyselect_1.1.1 
[22] rprojroot_2.0.2   grid_4.1.0        glue_1.4.2        R6_2.5.0          processx_3.5.2    fansi_0.5.0       sessioninfo_1.1.1
[29] callr_3.7.0       purrr_0.3.4       ggplot2_3.3.5     magrittr_2.0.1    scales_1.1.1      ellipsis_0.3.2    htmltools_0.5.1.1
[36] colorspace_2.0-2  utf8_1.2.1        munsell_0.5.0     cachem_1.0.5      crayon_1.4.1     
ADD REPLY
2
Entering edit mode
9 weeks ago
Angelo ▴ 20

Hello again! I managed to fix it by re-installing Rcpp: install.packages("Rcpp")

Hope it works for u as well!

//Angelo

ADD COMMENT

Login before adding your answer.

Traffic: 2222 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6