ropensci / weathercan

R package for downloading weather data from Environment and Climate Change Canada
https://docs.ropensci.org/weathercan
GNU General Public License v3.0
102 stars 29 forks source link

pkgdown failure #130

Closed maelle closed 2 years ago

maelle commented 2 years ago

Not sure what's up as I can't reproduce it locally. :thinking:

https://github.com/r-universe/ropensci/runs/6106400501?check_suite_focus=true

Reading 'vignettes/articles/mapping.Rmd'
-- RMarkdown error -------------------------------------------------------------

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

weathercan v0.6.2
The internal `stations` data has been deprecated in favour of the function `stations()`.
See ?stations for more details.
Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 6.3.1; sf_use_s2() is TRUE
The stations data frame hasn't been updated in over 4 weeks. Consider running `stations_dl()` to update it so you have the most recent stations list available
The stations data frame hasn't been updated in over 4 weeks. Consider running `stations_dl()` to update it so you have the most recent stations list available
No data for station 10217
No data for station 50148
No data for station 51097
No data for station 52961
No data for station 53318
No data for station 53698
No data for station 54278
No data for station 54279
No data for station 55138
There are no data for some stations (10217, 50148, 51097, 52961, 53318, 53698, 54278, 54279, 55138), in this time range (2017-01-01 to 2017-12-31), for this interval (day)
Available Station Data:
# A tibble: 19 × 16
   prov  station_name     station_id climate_id WMO_id TC_id   lat    lon  elev
   <chr> <chr>                 <dbl> <chr>       <dbl> <chr> <dbl>  <dbl> <dbl>
 1 MB    GILLAM                10217 5060999        NA WGX    56.4  -94.7 145. 
 2 MB    GILLAM                10217 5060999        NA WGX    56.4  -94.7 145. 
 3 MB    GILLAM                10217 5060999        NA WGX    56.4  -94.7 145. 
 4 MB    CHURCHILL A           50148 5060605     71618 YYQ    58.7  -94.1  29.3
 5 MB    CHURCHILL A           50148 5060605     71618 YYQ    58.7  -94.1  29.3
 6 MB    WINNIPEG INTL A       51097 5023227        NA YWG    49.9  -97.2 239. 
 7 MB    WINNIPEG INTL A       51097 5023227        NA YWG    49.9  -97.2 239. 
 8 MB    FLIN FLON A           52961 5050973        NA YFO    54.7 -102.  304. 
 9 MB    FLIN FLON A           52961 5050973        NA YFO    54.7 -102.  304. 
10 MB    BERENS RIVER A        53318 5030204        NA YBV    52.4  -97.0 222. 
11 MB    BERENS RIVER A        53318 5030204        NA YBV    52.4  -97.0 222. 
12 MB    GILLAM A              53698 5061025        NA YGX    56.4  -94.7 145. 
13 MB    GILLAM A              53698 5061025        NA YGX    56.4  -94.7 145. 
14 MB    ISLAND LAKE A         54278 5061374     71145 YIV    53.9  -94.6 235. 
15 MB    ISLAND LAKE A         54278 5061374     71145 YIV    53.9  -94.6 235. 
16 MB    THE PAS A             54279 5052882     71867 YQD    54.0 -101.  271. 
17 MB    THE PAS A             54279 5052882     71867 YQD    54.0 -101.  271. 
18 MB    THOMPSON AIRPORT      55138 5062918     73072 PTO    55.8  -97.9 214  
19 MB    THOMPSON AIRPORT      55138 5062918     73072 PTO    55.8  -97.9 214  
# … with 7 more variables: tz <chr>, interval <chr>, start <dbl>, end <dbl>,
#   normals <lgl>, normals_1981_2010 <lgl>, normals_1971_2000 <lgl>
Some variables have non-numeric values (spd_max_gust), for stations: 54658, 53398, 53118, 52758, 52438, 50897, 50821, 49909, 48972, 48969, 48951, 48868, 48728, 48588, 48128, 48068, 45007, 44244, 43983, 43243, 30475, 29886, 29593, 29533, 28051, 27867, 27741, 27174, 27119, 26866, 26857, 10927, 10884, 10881, 10213, 10196, 10188, 10186, 10185, 9035, 8993, 7333, 7290, 3853, 3721, 3649, 3605, 3562
  Replaced all non-numeric entries with NA. Use 'string_as = NULL' to keep as characters (see ?weather_dl).
Quitting from lines 216-224 (mapping.Rmd) 
Error in mutate(., fig_region = map2(data, ECOREGION, ~plot_region_fig(.x,  : 
  Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch
--------------------------------------------------------------------------------
Error in render_rmarkdown(pkg, input = input, output = output_file, output_format = format,  : 
  Failed to render RMarkdown
Caused by error:
! callr subprocess failed: Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch
Caused by error:
! Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch
In addition: Warning messages:
1: In process_conditional_examples(x) :
  @examplesIf condition `check_eccc()` is FALSE
2: In process_conditional_examples(x) :
  @examplesIf condition `check_eccc()` is FALSE
3: In process_conditional_examples(x) :
  @examplesIf condition `check_eccc()` is FALSE
4: In process_conditional_examples(x) :
  @examplesIf condition `check_eccc()` is FALSE
5: In process_conditional_examples(x) :
  @examplesIf condition `check_eccc()` is FALSE
6: In process_conditional_examples(x) :
  @examplesIf condition `check_eccc()` is FALSE
7: In process_conditional_examples(x) :
  @examplesIf condition `check_eccc()` is FALSE

Error: <callr_status_error: callr subprocess failed: Failed to render RMarkdown
Caused by error:
! callr subprocess failed: Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch
Caused by error:
! Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch>
-->
<callr_remote_error in render_rmarkdown(pkg, input = input, output = output_file, output_format =  ...:
 Failed to render RMarkdown
Caused by error:
! callr subprocess failed: Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch
Caused by error:
! Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch>
 in process 2930 

 Stack trace:

 Process 9:
 1. rodocs::build_site("https://github.com/ropensci/weathercan",  ...
 2. rotemplate::build_ropensci_docs(destination = tmp)
 3. pkgdown::build_site(pkg = pkg, ..., install = install, preview =  ...
 4. pkgdown:::build_site_external(pkg = pkg, examples = examples,  ...
 5. callr::r(function(..., crayon_enabled, crayon_colors, pkgdown_int ...
 6. callr:::get_result(output = out, options)
 7. throw(newerr, parent = remerr[[2]])

 x callr subprocess failed: Failed to render RMarkdown
Caused by error:
! callr subprocess failed: Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch
Caused by error:
! Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch 

 Process 2930:
 19. (function (..., crayon_enabled, crayon_colors, pkgdown_internet)  ...
 20. pkgdown::build_site(...)
 21. pkgdown:::build_site_local(pkg = pkg, examples = examples, run_do ...
 22. pkgdown:::build_articles(pkg, lazy = lazy, override = override,  ...
 23. purrr::walk(pkg$vignettes$name, build_article, pkg = pkg, quiet = ...
 24. purrr:::map(.x, .f, ...)
 25. pkgdown:::.f(.x[[i]], ...)
 26. pkgdown:::render_rmarkdown(pkg, input = input, output = output_fi ...
 27. base:::tryCatch(callr::r_safe(function(...) rmarkdown::render(... ...
 28. base:::tryCatchList(expr, classes, parentenv, handlers)
 29. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
 30. value[[3L]](cond)
 31. rlang:::abort("Failed to render RMarkdown", parent = cnd)
 32. rlang:::signal_abort(cnd, .file)
 33. base:::signalCondition(cnd)
 34. (function (e)  ...

 x Failed to render RMarkdown
Caused by error:
! callr subprocess failed: Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch
Caused by error:
! Problem while computing `fig_region = map2(data, ECOREGION,
~plot_region_fig(.x, .y))`.
Caused by error in `svglite_()`:
! Graphics API version mismatch 

Execution halted
maelle commented 2 years ago

I simply had to retry the failed build :woman_shrugging:

boshek commented 2 years ago

gremlins!