Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experiment2 fails to detect installed pkg version is more recent and fails where spades doesn't #10

Open
CeresBarros opened this issue Mar 11, 2022 · 1 comment

Comments

@CeresBarros
Copy link
Member

experiment2 is complaining that a particular (earlier) version of SpaDES.core -- which is listed in one of the modules -- is not available, when the installed version is higher.
Also, running spades on the same simLists presents no issues.

## separate spades calls work:
> spades(mySimGLM, debug = TRUE)  
Mar10 17:05:58       Using setDTthreads(1). To change: 'options(spades.DTthreads = X)'.
Mar10 17:05:58 chckpn eventTime moduleName eventType eventPriority
Mar10 17:05:58 chckpn 1         checkpoint init      0            
Mar10 17:05:58 save   1         save       init      0            
Mar10 17:05:58 prgrss 1         progress   init      0            
Mar10 17:05:58 load   1         load       init      0            
(...)
Mar10 17:07:00 prjctS Saved figure to: D:/GitHub/SpaDES4Dummies/outputs/figures/projRawVals_GLM_Year5.png
Mar10 17:07:01 prjctS Saving 4.37 x 4.24 in image
Mar10 17:07:03 prjctS Saved figure to: D:/GitHub/SpaDES4Dummies/outputs/figures/projPA_GLM_Year5.png
simList saved in
 SpaDES.core:::.pkgEnv$.sim 
It will be deleted at next spades() call.

> spades(mySimMaxEnt, debug = TRUE)  
Mar10 17:02:24       Using setDTthreads(1). To change: 'options(spades.DTthreads = X)'.
Mar10 17:02:24 chckpn eventTime moduleName eventType eventPriority
Mar10 17:02:24 chckpn 1         checkpoint init      0            
Mar10 17:02:24 save   1         save       init      0            
Mar10 17:02:24 prgrss 1         progress   init      0            
Mar10 17:02:24 load   1         load       init      0            
Mar10 17:02:24 clmtDt 1         climateData init      1            
(...)           
Mar10 17:03:32 prjctS Saving 4.37 x 4.24 in image
Mar10 17:03:34 prjctS Saved figure to: D:/GitHub/SpaDES4Dummies/outputs/figures/projRawVals_MaxEnt_Year5.png
Mar10 17:03:35 prjctS Saving 4.37 x 4.24 in image
Mar10 17:03:37 prjctS Saved figure to: D:/GitHub/SpaDES4Dummies/outputs/figures/projPA_MaxEnt_Year5.png
simList saved in
 SpaDES.core:::.pkgEnv$.sim 
It will be deleted at next spades() call.

## experiment2 fails
> experiment2(MaxEnt = mySimMaxEnt, 
+             GLM = mySimGLM, 
+             debug = TRUE, 
+             replicates = 1)
Error in loadNamespace(pkg) : 
  there is no package called ‘SpaDES.core (>=1.0.10.9005)’

My session info:

> sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=English_Canada.1252  LC_CTYPE=English_Canada.1252    LC_MONETARY=English_Canada.1252 LC_NUMERIC=C                   
[5] LC_TIME=English_Canada.1252    

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

other attached packages:
 [1] dismo_1.3-5                  raster_3.5-15                sp_1.4-6                     data.table_1.14.2           
 [5] terra_1.5-21                 rasterVis_0.51.2             lattice_0.20-45              ggplot2_3.3.5               
 [9] SpaDES.experiment_0.0.2.9002 SpaDES.tools_0.3.10          SpaDES.core_1.0.10.9007      quickPlot_0.1.7.9002        
[13] reproducible_1.2.8.9040      SpaDES_2.0.8                

loaded via a namespace (and not attached):
 [1] CircStats_0.2-6     gdalUtilities_1.2.0 fastdigest_0.6-3    fs_1.5.2            fpCompare_0.2.3     sf_1.0-6            bit64_4.0.5        
 [8] RColorBrewer_1.1-2  tools_4.0.4         backports_1.4.1     utf8_1.2.2          rgdal_1.5-28        R6_2.5.1            KernSmooth_2.23-20 
[15] rgeos_0.5-9         DBI_1.1.2           colorspace_2.0-3    withr_2.4.3         bit_4.0.4           compiler_4.0.4      labeling_0.4.2     
[22] stringfish_0.15.5   scales_1.1.1        checkmate_2.0.0     hexbin_1.28.2       classInt_0.4-3      proxy_0.4-26        digest_0.6.29      
[29] rmarkdown_2.12      jpeg_0.1-9          pkgconfig_2.0.3     htmltools_0.5.2     parallelly_1.30.0   DEoptim_2.2-6       fastmap_1.1.0      
[36] rlang_0.4.11        rstudioapi_0.13     RSQLite_2.2.10      farver_2.1.0        RApiSerialize_0.1.0 zoo_1.8-9           magrittr_2.0.1     
[43] Rcpp_1.0.8          munsell_0.5.0       fansi_1.0.2         lifecycle_1.0.1     whisker_0.4         yaml_2.3.5          MASS_7.3-55        
[50] grid_4.0.4          blob_1.2.2          parallel_4.0.4      listenv_0.8.0       crayon_1.5.0        Require_0.0.13.9003 knitr_1.37         
[57] pillar_1.7.0        igraph_1.2.11       boot_1.3-28         future.apply_1.8.1  codetools_0.2-18    fastmatch_1.1-3     glue_1.6.2         
[64] evaluate_0.15       latticeExtra_0.6-29 remotes_2.4.2       RcppParallel_5.1.5  vctrs_0.3.8         png_0.1-7           gtable_0.3.0       
[71] purrr_0.3.4         qs_0.25.3           future_1.24.0       cachem_1.0.5        xfun_0.29           gridBase_0.4-7      e1071_1.7-9        
[78] class_7.3-20        googledrive_2.0.0   viridisLite_0.4.0   gargle_1.2.0        tibble_3.1.6        rJava_1.0-6         memoise_2.0.1      
[85] units_0.8-0         globals_0.14.0      ellipsis_0.3.2     

Note that I'm using the recently PRed version of SpaDES.experiment@development (c594ea3), because there was a big I had to fix earlier.

@CeresBarros CeresBarros changed the title experiment2 fails to detect installed pkg version is more recent and fails where spades doesn't experiment2 fails to detect installed pkg version is more recent and fails where spades doesn't Mar 11, 2022
@CeresBarros
Copy link
Member Author

CeresBarros commented Mar 11, 2022

Update: I bypassed the issue by adding the PredictiveEcology repo to the SpaDES.core minimum version listed in the module. But it puzzles me that spades didn't need that and experiment2 did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant