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

Error in match.arg(option, several.ok = FALSE) #64

Closed
ggrittz opened this issue Aug 3, 2023 · 3 comments
Closed

Error in match.arg(option, several.ok = FALSE) #64

ggrittz opened this issue Aug 3, 2023 · 3 comments

Comments

@ggrittz
Copy link

ggrittz commented Aug 3, 2023

Hello,

While running the vignette example I encountered the following error message:

Error in match.arg(option, several.ok = FALSE) : 
  'arg' should be one of “inla.call”, “inla.arg”, “fmesher.call”, “fmesher.arg”, “num.threads”, “smtp”, “safe”, “pardiso.license”, “keep”, “verbose”, “save.memory”, “working.directory”, “silent”, “debug”, “show.warning.graph.file”, “scale.model.default”, “short.summary”, “inla.timeout”, “fmesher.timeout”, “inla.mode”, “fmesher.evolution”

Here's my sessionInfo()

R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default


locale:
[1] LC_COLLATE=Portuguese_Brazil.utf8  LC_CTYPE=Portuguese_Brazil.utf8   
[3] LC_MONETARY=Portuguese_Brazil.utf8 LC_NUMERIC=C                      
[5] LC_TIME=Portuguese_Brazil.utf8    

time zone: America/Sao_Paulo
tzcode source: internal

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

other attached packages:
[1] assertthat_0.2.1 uuid_1.1-0       terra_1.7-29     xgboost_1.7.5.1  inlabru_2.8.0   
[6] sp_2.0-0         ibis.iSDM_0.0.5 

loaded via a namespace (and not attached):
 [1] tensorA_0.36.2       utf8_1.2.3           generics_0.1.3       class_7.3-22        
 [5] KernSmooth_2.23-22   lattice_0.21-8       magrittr_2.0.3       grid_4.3.0          
 [9] iterators_1.0.14     foreach_1.5.2        jsonlite_1.8.7       Matrix_1.6-0        
[13] e1071_1.7-13         backports_1.4.1      DBI_1.1.3            fansi_1.0.4         
[17] scales_1.2.1.9000    codetools_0.2-19     abind_1.4-5          cli_3.6.1           
[21] rlang_1.1.1          units_0.8-2          INLA_23.06.29        splines_4.3.0       
[25] munsell_0.5.0        withr_2.5.0          tools_4.3.0          proto_1.0.0         
[29] parallel_4.3.0       checkmate_2.2.0      dplyr_1.1.2          colorspace_2.1-0    
[33] ggplot2_3.4.2        vctrs_0.6.3          posterior_1.4.1      R6_2.5.1            
[37] proxy_0.4-27         lifecycle_1.0.3      classInt_0.4-9       pkgconfig_2.0.3     
[41] pillar_1.9.0         gtable_0.3.3         glue_1.6.2           data.table_1.14.8   
[45] Rcpp_1.0.11          sf_1.0-14            tibble_3.2.1         tidyselect_1.2.0    
[49] rstudioapi_0.15.0    farver_2.1.1         compiler_4.3.0       distributional_0.3.2

Any idea what could be happening?

Thanks!

@Martin-Jung
Copy link
Collaborator

Hi,
the vignette is updated and rerun every time a patch is been made (such as a few minutes ago). Thus the most likely cause is that your packages are outdated in some way. I also note that you seem to use the development version of INLA rather than the stable one. Could you please run these commands in the following order and report if that fixes things?

  • remove.packages("INLA")
  • install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)
  • remotes::install_github("IIASA/ibis.iSDM")
  • library(ibis.iSDM)
  • ibis_dependencies()

@ggrittz
Copy link
Author

ggrittz commented Aug 7, 2023

Hello, sorry for the delay

I'll give it a try, thanks! I think I was using the test version of INLA because install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)was returning non-zero status for me.

Now I'm testing devtools::install_github(repo = "https://github.com/hrue/r-inla", ref = "stable", subdir = "rinla", build = FALSE), so I hope it works properly.

Edit: yep...didn't work. I'll have to fix INLA first.

@Martin-Jung
Copy link
Collaborator

I assume it is dependency and local setup issue. Reopen if not.

@Martin-Jung Martin-Jung closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
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

2 participants