r-spatial / gstat

Spatial and spatio-temporal geostatistical modelling, prediction and simulation
http://r-spatial.github.io/gstat/
GNU General Public License v2.0
195 stars 49 forks source link

Can't load gstat even after re-installing #143

Closed nafreymueller closed 2 months ago

nafreymueller commented 2 months ago

gstat can't be loaded anymore, even after re-installing. Removing, and re-installing the package doesn't work either.

library(gstat)
Error: package or namespace load failed for ‘gstat’:
 package slot missing from signature for generic ‘coerce’
and classes STFDF, RasterBrick
cannot use with duplicate class names (the package may need to be re-installed)

sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS Ventura 13.6.1

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

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

time zone: Australia/Adelaide
tzcode source: internal

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

other attached packages:
 [1] INLA_24.05.01-1         sp_2.1-4                Matrix_1.7-0           
 [4] stringr_1.5.1           ggpubr_0.6.0            beepr_2.0              
 [7] terrainr_0.7.5          rnaturalearthdata_1.0.0 rnaturalearth_1.0.1    
[10] stars_0.6-6             abind_1.4-5             sf_1.0-16              
[13] terra_1.7-78            ggOceanMaps_2.2.0       ggplot2_3.5.1          
[16] dplyr_1.1.4             data.table_1.15.4      

loaded via a namespace (and not attached):
 [1] spatstat.sparse_3.1-0  lubridate_1.9.3        httr_1.4.7            
 [4] RColorBrewer_1.1-3     tools_4.4.1            backports_1.5.0       
 [7] utf8_1.2.4             R6_2.5.1               withr_3.0.0           
[10] gridExtra_2.3          cli_3.6.3              spatstat.explore_3.3-1
[13] sandwich_3.1-0         mvtnorm_1.2-5          spatstat.data_3.1-2   
[16] proxy_0.4-27           readxl_1.4.3           rstudioapi_0.16.0     
[19] generics_0.1.3         spatstat.random_3.3-1  car_3.1-2             
[22] wesanderson_0.3.7      fansi_1.0.6            DescTools_0.99.54     
[25] lifecycle_1.0.4        carData_3.0-5          grid_4.4.1            
[28] lattice_0.22-6         pathroutr_0.2.1        pillar_1.9.0          
[31] boot_1.3-30            gld_2.6.6              codetools_0.2-20      
[34] glue_1.7.0             spatstat.univar_3.0-0  vctrs_0.6.5           
[37] cellranger_1.1.0       gtable_0.3.5           audio_0.1-11          
[40] gmm_1.8                units_0.8-5            nlme_3.1-165          
[43] CircStats_0.2-6        xts_0.14.0             TMB_1.9.14            
[46] tmvtnorm_1.6           crsmeta_0.3.0          KernSmooth_2.23-24    
[49] colorspace_2.1-0       DBI_1.2.3              raster_3.6-26         
[52] Exact_3.3              tidyselect_1.2.1       compiler_4.4.1        
[55] expm_0.999-9           reproj_0.7.0           scales_1.3.0          
[58] traipse_0.3.0          proj4_1.0-14           classInt_0.4-10       
[61] fmesher_0.1.7          goftest_1.2-3          spatstat.utils_3.0-5  
[64] pkgconfig_2.0.3        rlang_1.1.4            zoo_1.8-12            
[67] jsonlite_1.8.8         magrittr_2.0.3         patchwork_1.2.0       
[70] munsell_0.5.1          Rcpp_1.0.13            viridis_0.6.5         
[73] stringi_1.8.4          rootSolve_1.8.2.4      MASS_7.3-61           
[76] parallel_4.4.1         lmom_3.0               deldir_2.0-4          
[79] splines_4.4.1          tensor_1.5             aniMotum_1.2-06       
[82] trip_1.10.0            spatstat.geom_3.3-2    ggsignif_0.6.4        
[85] stats4_4.4.1           tidyr_1.3.1            purrr_1.0.2           
[88] polyclip_1.10-7        broom_1.0.6            e1071_1.7-14          
[91] rstatix_0.7.2          viridisLite_0.4.2      class_7.3-22          
[94] unifir_0.2.4           intervals_0.15.4       tibble_3.2.1          
[97] ellipse_0.5.0          timechange_0.3.0    
edzer commented 2 months ago

Did you try removing it first? What is reported when trying to install after a remove?

nafreymueller commented 2 months ago

Yes I've tried this and still nothing. After experimenting with other folks in the office, the issue does appear to be exclusive to RStudio (but not base R, which runs fine) running on a M1 (or other Apple Silicon-based) Mac. I had a similar issue with terra #1577, so this seems to be a deeper-set problem than gstat unfortunately.

edzer commented 2 months ago

The CRAN repository used? Close here?

nafreymueller commented 2 months ago

It seems to be any of them I've tried. Guessing it's at some deeper level. Closing here is probably fine.