EMODnet / emodnet.wfs

Access EMODnet Web Feature Service data through R
https://emodnet.github.io/emodnet.wfs/
Other
8 stars 4 forks source link

pkgdown failure due to vignette #138

Closed maelle closed 1 year ago

maelle commented 1 year ago

oh I get it in tests when I re-record fixtures so maybe that's a problem from upstream @salvafern?

Error (test-layer_attributes.R:4): layer attributes stuff works
<Rcpp::exception/C++Error/error/condition>
Error: Cannot open "/tmp/RtmpgSMevd/fileefce6376d922.gml"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
maelle commented 1 year ago

reprex

library("EMODnetWFS")
wfs  <- emodnet_init_wfs_client("biology")
#> Loading ISO 19139 XML schemas...
#> Loading ISO 19115 codelists...
#> ✔ WFS client created successfully
#> ℹ Service: "https://geo.vliz.be/geoserver/Emodnetbio/wfs"
#> ℹ Version: "2.0.0"
country <- layer_attribute_inspect(wfs, layer = "mediseh_zostera_m_pnt", attribute = "country")
#> Error: Cannot open "/tmp/RtmpATaq0J/filef4bd3b45319b.gml"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.

Created on 2023-02-07 with reprex v2.0.2

salvafern commented 1 year ago

I'm not seeing that issue. Maybe was temporary? (btw it would be great if ows4R did surface the errors that come with the .gml file instead of letting sf fail)

library("EMODnetWFS")
wfs  <- emodnet_init_wfs_client("biology")
#> Loading ISO 19139 XML schemas...
#> Loading ISO 19115 codelists...
#> ✔ WFS client created successfully
#> ℹ Service: "https://geo.vliz.be/geoserver/Emodnetbio/wfs"
#> ℹ Version: "2.0.0"
country <- layer_attribute_inspect(wfs, layer = "mediseh_zostera_m_pnt", attribute = "country")
country
#> # A tibble: 7 × 3
#>   .            n percent
#>   <chr>    <int>   <dbl>
#> 1 Croazia      4  0.0741
#> 2 Francia      1  0.0185
#> 3 Italia      30  0.556 
#> 4 Libia        2  0.0370
#> 5 Slovenia     8  0.148 
#> 6 Spagna       8  0.148 
#> 7 Tunisia      1  0.0185

sessionInfo()
#> R version 4.2.0 (2022-04-22 ucrt)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19044)
#> 
#> Matrix products: default
#> 
#> locale:
#> [1] LC_COLLATE=English_United States.utf8 
#> [2] LC_CTYPE=English_United States.utf8   
#> [3] LC_MONETARY=English_United States.utf8
#> [4] LC_NUMERIC=C                          
#> [5] LC_TIME=English_United States.utf8    
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] EMODnetWFS_2.0.1.9001
#> 
#> loaded via a namespace (and not attached):
#>  [1] terra_1.6-17       tidyselect_1.1.2   xfun_0.31          purrr_0.3.4       
#>  [5] sf_1.0-7           generics_0.1.2     vctrs_0.4.1        htmltools_0.5.4   
#>  [9] yaml_2.3.5         utf8_1.2.2         XML_3.99-0.9       rlang_1.0.6       
#> [13] e1071_1.7-9        pillar_1.7.0       glue_1.6.2         withr_2.5.0       
#> [17] DBI_1.1.2          lifecycle_1.0.3    whoami_1.3.0       stringr_1.4.0     
#> [21] codetools_0.2-18   memoise_2.0.1      evaluate_0.15      knitr_1.39        
#> [25] tzdb_0.3.0         fastmap_1.1.0      curl_4.3.2         parallel_4.2.0    
#> [29] class_7.3-20       fansi_1.0.3        highr_0.9          Rcpp_1.0.10       
#> [33] KernSmooth_2.23-20 readr_2.1.2        openssl_2.0.1      backports_1.4.1   
#> [37] classInt_0.4-3     checkmate_2.1.0    ows4R_0.3-2        cachem_1.0.6      
#> [41] jsonlite_1.8.4     fs_1.5.2           hms_1.1.1          askpass_1.1       
#> [45] digest_0.6.29      stringi_1.7.6      dplyr_1.0.9        keyring_1.3.0     
#> [49] grid_4.2.0         cli_3.4.1          tools_4.2.0        magrittr_2.0.3    
#> [53] proxy_0.4-26       geometa_0.7-1      tibble_3.1.7       crayon_1.5.2      
#> [57] pkgconfig_2.0.3    ellipsis_0.3.2     reprex_2.0.2       assertthat_0.2.1  
#> [61] rmarkdown_2.14     httr_1.4.3         rstudioapi_0.13    R6_2.5.1          
#> [65] units_0.8-0        compiler_4.2.0
紀
#> Error in eval(expr, envir, enclos): object '紀' not found

Created on 2023-03-02 with reprex v2.0.2

maelle commented 1 year ago

true, I was able to build the vignette.