Closed VeruGHub closed 1 year ago
Hi, I am having a similar error code produced when I use the example code given on the introductory page. Is there any way to solve this, and get the code to run properly? Many thanks,
Emma
Hi Emma, Thanks for your message. Next time you get the error, please, run:
easyclimate::check_server()
sessionInfo()
And let me know the outputs. Try to run the function with a good internet conexion and in a new R session and let me know if the problem persists. I have just ran the code and it worked for me.
Verónica
Hi Verónica,
The function has been running well until today. I have not changed the internet connection, which I think was the previous problem, but I am getting the error code again for some reason. I ran the code above and get the following outputs.
Emma
Hi @emmamclea
Sorry to hear you had problems accessing the data. I hope the connection problem got solved eventually. We are currently transferring all the climate data to a faster, more reliable server that will for sure improve the downloading experience. We hope to have everything sorted out in 1-2 weeks
Cheers
check_server now have more checks and returns more useful messages to diagnose connection problems
remotes::install_github("VeruGHub/easyclimate") library(easyclimate);library(sf);library(terra)
coords <- matrix(c(-5.36, 37.40), ncol = 2)
easyclimate::check_server()
get_daily_climate(coords=coords, climatic_var = "Tmax", period="2000-01-01:2000-01-15", output="raster")
Rversion: _
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 1.3
year 2022
month 03
day 10
svn rev 81868
language R
version.string R version 4.1.3 (2022-03-10) nickname One Push-Up
sessionInfo(): version 4.1.3 (2022-03-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale: [1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252 [4] LC_NUMERIC=C LC_TIME=Spanish_Spain.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] tmap_3.3-3 sf_1.0-7 easyclimate_0.1.6 terra_1.5-21
loaded via a namespace (and not attached): [1] tidyselect_1.1.2 remotes_2.4.2 purrr_0.3.4 lattice_0.20-45 vctrs_0.3.8
[6] generics_0.1.2 htmltools_0.5.2 stars_0.5-5 viridisLite_0.4.0 base64enc_0.1-3
[11] utf8_1.2.2 XML_3.99-0.9 rlang_1.0.2 e1071_1.7-9 pillar_1.7.0
[16] glue_1.6.2 DBI_1.1.2 sp_1.4-6 RColorBrewer_1.1-2 lifecycle_1.0.1
[21] raster_3.5-15 htmlwidgets_1.5.4 codetools_0.2-18 leafsync_0.1.0 fastmap_1.1.0
[26] crosstalk_1.2.0 parallel_4.1.3 class_7.3-20 fansi_1.0.2 leafem_0.1.6
[31] Rcpp_1.0.8.3 KernSmooth_2.23-20 classInt_0.4-3 lwgeom_0.2-8 leaflet_2.1.1
[36] abind_1.4-5 png_0.1-7 digest_0.6.29 dplyr_1.0.8 tmaptools_3.1-1
[41] grid_4.1.3 bitops_1.0-7 cli_3.2.0 tools_4.1.3 magrittr_2.0.2
[46] RCurl_1.98-1.6 proxy_0.4-26 tibble_3.1.6 dichromat_2.0-0 crayon_1.5.0
[51] pkgconfig_2.0.3 ellipsis_0.3.2 R6_2.5.1 units_0.8-0 compiler_4.1.3