Running ‘testthat.R’ [134s/368s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(brpop)
  > 
  > test_check("brpop")
  Setting `max_tries = 2`.
  Setting `max_tries = 2`.
  > Waiting 1.7s for retry backoff
  Setting `max_tries = 2`.
  > Waiting 1.5s for retry backoff
  Setting `max_tries = 2`.
  > Waiting 1s for retry backoff
  Setting `max_tries = 2`.
  > Waiting 1.9s for retry backoff
  Setting `max_tries = 2`.
  > Waiting 1.4s for retry backoff
  Setting `max_tries = 2`.
  > Waiting 1.6s for retry backoff
  Setting `max_tries = 2`.
  > Waiting 1.2s for retry backoff
  Setting `max_tries = 2`.
  > Waiting 1.8s for retry backoff
  
   [0%] Downloaded 11108 bytes...
   [0%] Downloaded 27492 bytes...
   [1%] Downloaded 76164 bytes...
   [1%] Downloaded 92548 bytes...
   [3%] Downloaded 157956 bytes...
   [3%] Downloaded 174276 bytes...
   [6%] Downloaded 305092 bytes...
   [10%] Downloaded 484668 bytes...
   [13%] Downloaded 631876 bytes...
   [13%] Downloaded 648196 bytes...
   [17%] Downloaded 828100 bytes...
   [21%] Downloaded 1007940 bytes...
   [25%] Downloaded 1187844 bytes...
   [29%] Downloaded 1367684 bytes...
   [33%] Downloaded 1547588 bytes...
   [37%] Downloaded 1727428 bytes...
   [40%] Downloaded 1907332 bytes...
   [44%] Downloaded 2087172 bytes...
   [48%] Downloaded 2267076 bytes...
   [52%] Downloaded 2430596 bytes...
   [55%] Downloaded 2610436 bytes...
   [59%] Downloaded 2790340 bytes...
   [63%] Downloaded 2970180 bytes...
   [67%] Downloaded 3150084 bytes...
   [71%] Downloaded 3329924 bytes...
   [75%] Downloaded 3509828 bytes...
   [79%] Downloaded 3689668 bytes...
   [82%] Downloaded 3869572 bytes...
   [86%] Downloaded 4049412 bytes...
   [90%] Downloaded 4229316 bytes...
   [93%] Downloaded 4376460 bytes...
   [97%] Downloaded 4556364 bytes...
   [100%] Downloaded 4665664 bytes...
  Setting `max_tries = 2`.
  
   [0%] Downloaded 11114 bytes...
   [1%] Downloaded 27498 bytes...
   [4%] Downloaded 96038 bytes...
   [6%] Downloaded 124346 bytes...
   [8%] Downloaded 168830 bytes...
   [10%] Downloaded 224098 bytes...
   [14%] Downloaded 304978 bytes...
   [15%] Downloaded 309022 bytes...
   [23%] Downloaded 488926 bytes...
   [30%] Downloaded 626154 bytes...
   [35%] Downloaded 729598 bytes...
   [37%] Downloaded 764646 bytes...
   [38%] Downloaded 798346 bytes...
   [40%] Downloaded 830698 bytes...
   [41%] Downloaded 859006 bytes...
   [44%] Downloaded 911946 bytes...
   [51%] Downloaded 1063818 bytes...
   [56%] Downloaded 1158262 bytes...
   [58%] Downloaded 1200050 bytes...
   [61%] Downloaded 1263966 bytes...
   [63%] Downloaded 1296734 bytes...
   [71%] Downloaded 1460482 bytes...
   [73%] Downloaded 1506046 bytes...
   [76%] Downloaded 1559966 bytes...
   [77%] Downloaded 1589622 bytes...
   [81%] Downloaded 1665110 bytes...
   [84%] Downloaded 1731162 bytes...
   [87%] Downloaded 1795866 bytes...
   [90%] Downloaded 1848438 bytes...
   [92%] Downloaded 1902358 bytes...
   [95%] Downloaded 1954930 bytes...
   [99%] Downloaded 2046594 bytes...
   [100%] Downloaded 2051476 bytes...
  Setting `max_tries = 2`.
  Setting `max_tries = 2`.
  
   [0%] Downloaded 12464 bytes...
   [0%] Downloaded 38076 bytes...
   [0%] Downloaded 71424 bytes...
   [0%] Downloaded 93344 bytes...
   [1%] Downloaded 131088 bytes...
   [1%] Downloaded 171528 bytes...
   [1%] Downloaded 182312 bytes...
   [1%] Downloaded 210620 bytes...
   [2%] Downloaded 247016 bytes...
   [3%] Downloaded 361956 bytes...
   [4%] Downloaded 484264 bytes...
   [4%] Downloaded 499092 bytes...
   [4%] Downloaded 512572 bytes...
   [4%] Downloaded 530096 bytes...
   [5%] Downloaded 669644 bytes...
   [7%] Downloaded 849548 bytes...
   [8%] Downloaded 996692 bytes...
   [8%] Downloaded 1013076 bytes...
   [10%] Downloaded 1192916 bytes...
   [11%] Downloaded 1372820 bytes...
   [13%] Downloaded 1519964 bytes...
   [14%] Downloaded 1667172 bytes...
   [15%] Downloaded 1847012 bytes...
   [17%] Downloaded 1994276 bytes...
   [17%] Downloaded 2043244 bytes...
   [17%] Downloaded 2059628 bytes...
   [18%] Downloaded 2153088 bytes...
   [19%] Downloaded 2204312 bytes...
   [19%] Downloaded 2277312 bytes...
   [20%] Downloaded 2394380 bytes...
   [21%] Downloaded 2441560 bytes...
   [21%] Downloaded 2494132 bytes...
   [22%] Downloaded 2562880 bytes...
   [22%] Downloaded 2619496 bytes...
   [23%] Downloaded 2700376 bytes...
   [23%] Downloaded 2767776 bytes...
   [24%] Downloaded 2821696 bytes...
   [24%] Downloaded 2898532 bytes...
   [25%] Downloaded 2963236 bytes...
   [26%] Downloaded 3030636 bytes...
   [26%] Downloaded 3106124 bytes...
   [27%] Downloaded 3173524 bytes...
   [27%] Downloaded 3239576 bytes...
   [28%] Downloaded 3315064 bytes...
   [29%] Downloaded 3410772 bytes...
   [29%] Downloaded 3466040 bytes...
   [30%] Downloaded 3533440 bytes...
   [30%] Downloaded 3572532 bytes...
   [31%] Downloaded 3623756 bytes...
   [32%] Downloaded 3723924 bytes...
   [33%] Downloaded 3858308 bytes...
   [34%] Downloaded 3949972 bytes...
   [34%] Downloaded 4040288 bytes...
   [35%] Downloaded 4121168 bytes...
   [36%] Downloaded 4218224 bytes...
   [37%] Downloaded 4311236 bytes...
   [38%] Downloaded 4436600 bytes...
   [39%] Downloaded 4555224 bytes...
   [40%] Downloaded 4654976 bytes...
   [40%] Downloaded 4725072 bytes...
   [41%] Downloaded 4819432 bytes...
   [42%] Downloaded 4881440 bytes...
   [42%] Downloaded 4951536 bytes...
   [43%] Downloaded 5056680 bytes...
   [44%] Downloaded 5136212 bytes...
   [44%] Downloaded 5207656 bytes...
   [45%] Downloaded 5273708 bytes...
   [46%] Downloaded 5335716 bytes...
   [46%] Downloaded 5403532 bytes...
   [47%] Downloaded 5551604 bytes...
   [48%] Downloaded 5626884 bytes...
   [49%] Downloaded 5726636 bytes...
   [49%] Downloaded 5780556 bytes...
   [50%] Downloaded 5843912 bytes...
   [50%] Downloaded 5912660 bytes...
   [51%] Downloaded 5982756 bytes...
   [52%] Downloaded 6100240 bytes...
   [53%] Downloaded 6194392 bytes...
   [54%] Downloaded 6272576 bytes...
   [54%] Downloaded 6356360 bytes...
   [55%] Downloaded 6439728 bytes...
   [56%] Downloaded 6539480 bytes...
   [57%] Downloaded 6613620 bytes...
   [57%] Downloaded 6697196 bytes...
   [58%] Downloaded 6757856 bytes...
   [58%] Downloaded 6838736 bytes...
   [59%] Downloaded 6922312 bytes...
   [60%] Downloaded 6980276 bytes...
   [61%] Downloaded 7106988 bytes...
   [61%] Downloaded 7171692 bytes...
   [62%] Downloaded 7232352 bytes...
   [63%] Downloaded 7311884 bytes...
   [63%] Downloaded 7387372 bytes...
   [64%] Downloaded 7526424 bytes...
   [66%] Downloaded 7661576 bytes...
   [67%] Downloaded 7811348 bytes...
   [68%] Downloaded 7948348 bytes...
   [69%] Downloaded 8082152 bytes...
   [70%] Downloaded 8214752 bytes...
   [72%] Downloaded 8362016 bytes...
   [73%] Downloaded 8541800 bytes...
   [75%] Downloaded 8697628 bytes...
   [75%] Downloaded 8790848 bytes...
   [76%] Downloaded 8911960 bytes...
   [78%] Downloaded 9075068 bytes...
   [79%] Downloaded 9205824 bytes...
   [80%] Downloaded 9336580 bytes...
   [81%] Downloaded 9495352 bytes...
   [82%] Downloaded 9618520 bytes...
   [83%] Downloaded 9734240 bytes...
   [84%] Downloaded 9836688 bytes...
   [85%] Downloaded 9931048 bytes...
   [86%] Downloaded 10041584 bytes...
   [87%] Downloaded 10141544 bytes...
   [88%] Downloaded 10211432 bytes...
   [89%] Downloaded 10352972 bytes...
   [90%] Downloaded 10474500 bytes...
   [91%] Downloaded 10620084 bytes...
   [92%] Downloaded 10726368 bytes...
   [92%] Downloaded 10737152 bytes...
   [93%] Downloaded 10803204 bytes...
   [94%] Downloaded 10914300 bytes...
   [95%] Downloaded 11032364 bytes...
   [96%] Downloaded 11180644 bytes...
   [97%] Downloaded 11280604 bytes...
   [98%] Downloaded 11417248 bytes...
   [99%] Downloaded 11581704 bytes...
   [100%] Downloaded 11595928 bytes...
  Setting `max_tries = 2`.
  
   [0%] Downloaded 12462 bytes...
   [0%] Downloaded 40770 bytes...
   [0%] Downloaded 83906 bytes...
   [0%] Downloaded 109518 bytes...
   [1%] Downloaded 128390 bytes...
   [1%] Downloaded 178266 bytes...
   [1%] Downloaded 183658 bytes...
   [1%] Downloaded 205226 bytes...
   [2%] Downloaded 261842 bytes...
   [2%] Downloaded 318666 bytes...
   [4%] Downloaded 469142 bytes...
   [4%] Downloaded 556122 bytes...
   [5%] Downloaded 671198 bytes...
   [6%] Downloaded 795650 bytes...
   [7%] Downloaded 812034 bytes...
   [8%] Downloaded 975570 bytes...
   [9%] Downloaded 1131218 bytes...
   [10%] Downloaded 1208138 bytes...
   [11%] Downloaded 1312294 bytes...
   [11%] Downloaded 1359466 bytes...
   [13%] Downloaded 1504698 bytes...
   [13%] Downloaded 1584230 bytes...
   [14%] Downloaded 1688026 bytes...
   [15%] Downloaded 1816086 bytes...
   [17%] Downloaded 1958974 bytes...
   [18%] Downloaded 2057378 bytes...
   [18%] Downloaded 2135562 bytes...
   [19%] Downloaded 2219138 bytes...
   [20%] Downloaded 2295974 bytes...
   [20%] Downloaded 2379550 bytes...
   [22%] Downloaded 2540230 bytes...
   [23%] Downloaded 2679014 bytes...
   [23%] Downloaded 2711718 bytes...
   [23%] Downloaded 2728038 bytes...
   [24%] Downloaded 2744422 bytes...
   [25%] Downloaded 2923002 bytes...
   [26%] Downloaded 3053550 bytes...
   [27%] Downloaded 3145422 bytes...
   [28%] Downloaded 3219354 bytes...
   [28%] Downloaded 3284058 bytes...
   [29%] Downloaded 3347414 bytes...
   [30%] Downloaded 3421554 bytes...
   [30%] Downloaded 3474126 bytes...
   [31%] Downloaded 3540178 bytes...
   [31%] Downloaded 3626450 bytes...
   [32%] Downloaded 3704634 bytes...
   [33%] Downloaded 3776078 bytes...
   [34%] Downloaded 3936758 bytes...
   [35%] Downloaded 4022762 bytes...
   [36%] Downloaded 4119818 bytes...
   [37%] Downloaded 4215526 bytes...
   [37%] Downloaded 4308746 bytes...
   [39%] Downloaded 4440642 bytes...
   [39%] Downloaded 4498606 bytes...
   [40%] Downloaded 4600418 bytes...
   [41%] Downloaded 4780322 bytes...
   [43%] Downloaded 4960162 bytes...
   [44%] Downloaded 5107426 bytes...
   [46%] Downloaded 5287210 bytes...
   [46%] Downloaded 5345358 bytes...
   [48%] Downloaded 5478166 bytes...
   [49%] Downloaded 5633622 bytes...
   [49%] Downloaded 5688890 bytes...
   [50%] Downloaded 5750898 bytes...
   [51%] Downloaded 5823690 bytes...
   [52%] Downloaded 5995298 bytes...
   [54%] Downloaded 6175202 bytes...
   [55%] Downloaded 6299534 bytes...
   [56%] Downloaded 6387154 bytes...
   [56%] Downloaded 6461294 bytes...
   [57%] Downloaded 6599494 bytes...
   [59%] Downloaded 6779398 bytes...
   [60%] Downloaded 6887262 bytes...
   [60%] Downloaded 6937138 bytes...
   [61%] Downloaded 7003190 bytes...
   [61%] Downloaded 7040934 bytes...
   [62%] Downloaded 7100246 bytes...
   [62%] Downloaded 7158210 bytes...
   [63%] Downloaded 7240438 bytes...
   [64%] Downloaded 7321318 bytes...
   [65%] Downloaded 7403546 bytes...
   [65%] Downloaded 7479034 bytes...
   [66%] Downloaded 7565306 bytes...
   [66%] Downloaded 7619226 bytes...
   [67%] Downloaded 7669102 bytes...
   [67%] Downloaded 7735154 bytes...
   [68%] Downloaded 7789074 bytes...
   [68%] Downloaded 7848386 bytes...
   [69%] Downloaded 7905002 bytes...
   [69%] Downloaded 7954878 bytes...
   [70%] Downloaded 8011494 bytes...
   [71%] Downloaded 8086050 bytes...
   [72%] Downloaded 8254194 bytes...
   [73%] Downloaded 8401402 bytes...
   [75%] Downloaded 8557434 bytes...
   [76%] Downloaded 8661438 bytes...
   [77%] Downloaded 8793334 bytes...
   [78%] Downloaded 8886346 bytes...
   [78%] Downloaded 8951050 bytes...
   [79%] Downloaded 9011710 bytes...
   [79%] Downloaded 9040018 bytes...
   [79%] Downloaded 9106278 bytes...
   [80%] Downloaded 9177514 bytes...
   [81%] Downloaded 9234130 bytes...
   [81%] Downloaded 9290746 bytes...
   [82%] Downloaded 9405886 bytes...
   [84%] Downloaded 9585726 bytes...
   [85%] Downloaded 9731910 bytes...
   [86%] Downloaded 9876834 bytes...
   [88%] Downloaded 10056738 bytes...
   [89%] Downloaded 10165806 bytes...
   [90%] Downloaded 10310042 bytes...
   [91%] Downloaded 10433850 bytes...
   [92%] Downloaded 10505294 bytes...
   [92%] Downloaded 10575390 bytes...
   [93%] Downloaded 10665706 bytes...
   [94%] Downloaded 10729062 bytes...
   [94%] Downloaded 10796462 bytes...
   [95%] Downloaded 10874646 bytes...
   [96%] Downloaded 11036674 bytes...
   [98%] Downloaded 11183818 bytes...
   [99%] Downloaded 11341054 bytes...
   [100%] Downloaded 11383564 bytes...
  Setting `max_tries = 2`.
  
   [0%] Downloaded 3022 bytes...
   [0%] Downloaded 39522 bytes...
   [1%] Downloaded 85354 bytes...
   [3%] Downloaded 178366 bytes...
   [5%] Downloaded 259598 bytes...
   [7%] Downloaded 343190 bytes...
   [10%] Downloaded 503654 bytes...
   [12%] Downloaded 593550 bytes...
   [15%] Downloaded 705642 bytes...
   [18%] Downloaded 844278 bytes...
   [21%] Downloaded 1017030 bytes...
   [22%] Downloaded 1022214 bytes...
   [25%] Downloaded 1164666 bytes...
   [27%] Downloaded 1274498 bytes...
   [29%] Downloaded 1357866 bytes...
   [30%] Downloaded 1427962 bytes...
   [31%] Downloaded 1476490 bytes...
   [33%] Downloaded 1537150 bytes...
   [34%] Downloaded 1595114 bytes...
   [37%] Downloaded 1733314 bytes...
   [41%] Downloaded 1913218 bytes...
   [43%] Downloaded 2035910 bytes...
   [46%] Downloaded 2144662 bytes...
   [49%] Downloaded 2279898 bytes...
   [51%] Downloaded 2393834 bytes...
   [53%] Downloaded 2498274 bytes...
   [55%] Downloaded 2581850 bytes...
   [58%] Downloaded 2693298 bytes...
   [60%] Downloaded 2802922 bytes...
   [61%] Downloaded 2860886 bytes...
   [62%] Downloaded 2894586 bytes...
   [64%] Downloaded 2965306 bytes...
   [65%] Downloaded 3033990 bytes...
   [68%] Downloaded 3181134 bytes...
   [72%] Downloaded 3340774 bytes...
   [74%] Downloaded 3454566 bytes...
   [77%] Downloaded 3570142 bytes...
   [79%] Downloaded 3671034 bytes...
   [81%] Downloaded 3754610 bytes...
   [83%] Downloaded 3847622 bytes...
   [84%] Downloaded 3931198 bytes...
   [87%] Downloaded 4044638 bytes...
   [89%] Downloaded 4147086 bytes...
   [92%] Downloaded 4265502 bytes...
   [94%] Downloaded 4383482 bytes...
   [96%] Downloaded 4471746 bytes...
   [98%] Downloaded 4549930 bytes...
   [99%] Downloaded 4603850 bytes...
   [100%] Downloaded 4633164 bytes...
  Setting `max_tries = 2`.
  
   [0%] Downloaded 9764 bytes...
   [1%] Downloaded 35376 bytes...
   [3%] Downloaded 75816 bytes...
   [4%] Downloaded 93340 bytes...
   [7%] Downloaded 148608 bytes...
   [8%] Downloaded 171524 bytes...
   [10%] Downloaded 214660 bytes...
   [11%] Downloaded 228140 bytes...
   [13%] Downloaded 276668 bytes...
   [22%] Downloaded 456572 bytes...
   [23%] Downloaded 472892 bytes...
   [28%] Downloaded 571012 bytes...
   [37%] Downloaded 750916 bytes...
   [44%] Downloaded 900792 bytes...
   [47%] Downloaded 965912 bytes...
   [56%] Downloaded 1137320 bytes...
   [57%] Downloaded 1153656 bytes...
   [65%] Downloaded 1317168 bytes...
   [74%] Downloaded 1497072 bytes...
   [81%] Downloaded 1644216 bytes...
   [90%] Downloaded 1824120 bytes...
   [96%] Downloaded 1938552 bytes...
   [100%] Downloaded 2016328 bytes...
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 13 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-pop_mun_consistency.R:2:3'): datasus pop mun general is consistent ──
  <httr2_http_504/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))`: HTTP 504 Gateway Timeout.
  Backtrace:
       ▆
    1. ├─... %>% dplyr::filter(count > 1) at test-pop_mun_consistency.R:2:3
    2. ├─dplyr::filter(., count > 1)
    3. ├─dplyr::summarise(., count = dplyr::n())
    4. ├─dplyr::group_by(., freq)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::summarise(., freq = sum(pop, na.rm = TRUE))
    7. ├─dplyr::group_by(., year, age_group)
    8. ├─brpop::mun_pop_age(source = "datasus")
    9. │ └─brpop:::datasus_mun_male_pop()
   10. │   └─zendown::zen_file(deposit_id = zenodo_deposit, file_name = "datasus_mun_male_pop.rds")
   11. │     └─zendown::mirror_deposit(...)
   12. │       └─zendown::list_deposit(deposit_id = deposit_id)
   13. │         ├─tidyr::unnest_wider(...)
   14. │         │ └─tidyr:::check_data_frame(data)
   15. │         │   └─base::is.data.frame(x)
   16. │         ├─tidyr::unnest_wider(...)
   17. │         │ └─tidyr:::check_data_frame(data)
   18. │         │   └─base::is.data.frame(x)
   19. │         └─tibble::tibble(httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))))
   20. │           └─tibble:::tibble_quos(xs, .rows, .name_repair)
   21. │             └─rlang::eval_tidy(xs[[j]], mask)
   22. ├─httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url))))
   23. │ └─httr2:::check_response(resp)
   24. │   └─httr2:::is_response(resp)
   25. └─httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))
   26.   └─httr2:::handle_resp(req, resp, error_call = error_call)
   27.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   28.       ├─rlang::catch_cnd(...)
   29.       │ ├─rlang::eval_bare(...)
   30.       │ ├─base::tryCatch(...)
   31.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   32.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   33.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   34.       │ └─base::force(expr)
   35.       └─rlang::abort(...)
  ── Error ('test-pop_mun_consistency.R:14:3'): datasus pop mun male is consistent ──
  <httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))`: HTTP 503 Service Unavailable.
  Backtrace:
       ▆
    1. ├─... %>% dplyr::filter(count > 1) at test-pop_mun_consistency.R:14:3
    2. ├─dplyr::filter(., count > 1)
    3. ├─dplyr::summarise(., count = dplyr::n())
    4. ├─dplyr::group_by(., freq)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::summarise(., freq = sum(pop, na.rm = TRUE))
    7. ├─dplyr::group_by(., year, age_group)
    8. ├─brpop:::datasus_mun_male_pop()
    9. │ └─zendown::zen_file(deposit_id = zenodo_deposit, file_name = "datasus_mun_male_pop.rds")
   10. │   └─zendown::mirror_deposit(...)
   11. │     └─zendown::list_deposit(deposit_id = deposit_id)
   12. │       ├─tidyr::unnest_wider(...)
   13. │       │ └─tidyr:::check_data_frame(data)
   14. │       │   └─base::is.data.frame(x)
   15. │       ├─tidyr::unnest_wider(...)
   16. │       │ └─tidyr:::check_data_frame(data)
   17. │       │   └─base::is.data.frame(x)
   18. │       └─tibble::tibble(httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))))
   19. │         └─tibble:::tibble_quos(xs, .rows, .name_repair)
   20. │           └─rlang::eval_tidy(xs[[j]], mask)
   21. ├─httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url))))
   22. │ └─httr2:::check_response(resp)
   23. │   └─httr2:::is_response(resp)
   24. └─httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))
   25.   └─httr2:::handle_resp(req, resp, error_call = error_call)
   26.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   27.       ├─rlang::catch_cnd(...)
   28.       │ ├─rlang::eval_bare(...)
   29.       │ ├─base::tryCatch(...)
   30.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   31.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   32.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   33.       │ └─base::force(expr)
   34.       └─rlang::abort(...)
  ── Error ('test-pop_mun_consistency.R:26:3'): datasus pop mun female is consistent ──
  <httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))`: HTTP 503 Service Unavailable.
  Backtrace:
       ▆
    1. ├─... %>% dplyr::filter(count > 1) at test-pop_mun_consistency.R:26:3
    2. ├─dplyr::filter(., count > 1)
    3. ├─dplyr::summarise(., count = dplyr::n())
    4. ├─dplyr::group_by(., freq)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::summarise(., freq = sum(pop, na.rm = TRUE))
    7. ├─dplyr::group_by(., year, age_group)
    8. ├─brpop:::datasus_mun_female_pop()
    9. │ └─zendown::zen_file(deposit_id = zenodo_deposit, file_name = "datasus_mun_female_pop.rds")
   10. │   └─zendown::mirror_deposit(...)
   11. │     └─zendown::list_deposit(deposit_id = deposit_id)
   12. │       ├─tidyr::unnest_wider(...)
   13. │       │ └─tidyr:::check_data_frame(data)
   14. │       │   └─base::is.data.frame(x)
   15. │       ├─tidyr::unnest_wider(...)
   16. │       │ └─tidyr:::check_data_frame(data)
   17. │       │   └─base::is.data.frame(x)
   18. │       └─tibble::tibble(httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))))
   19. │         └─tibble:::tibble_quos(xs, .rows, .name_repair)
   20. │           └─rlang::eval_tidy(xs[[j]], mask)
   21. ├─httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url))))
   22. │ └─httr2:::check_response(resp)
   23. │   └─httr2:::is_response(resp)
   24. └─httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))
   25.   └─httr2:::handle_resp(req, resp, error_call = error_call)
   26.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   27.       ├─rlang::catch_cnd(...)
   28.       │ ├─rlang::eval_bare(...)
   29.       │ ├─base::tryCatch(...)
   30.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   31.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   32.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   33.       │ └─base::force(expr)
   34.       └─rlang::abort(...)
  ── Error ('test-pop_mun_consistency.R:38:3'): ufrn pop mun general is consistent ──
  <curl_error_http_returned_error/curl_error/error/condition>
  Error in `curl::curl_download(url = url, destfile = file_path, quiet = quiet)`: HTTP response code said error [zenodo.org]: The requested URL returned error: 504
  Backtrace:
       ▆
    1. ├─... %>% dplyr::filter(count > 1) at test-pop_mun_consistency.R:38:3
    2. ├─dplyr::filter(., count > 1)
    3. ├─dplyr::summarise(., count = dplyr::n())
    4. ├─dplyr::group_by(., freq)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::summarise(., freq = sum(pop, na.rm = TRUE))
    7. ├─dplyr::group_by(., year, age_group)
    8. ├─brpop::mun_pop_age(source = "ufrn")
    9. │ └─brpop:::ufrn_mun_male_pop()
   10. │   └─zendown::zen_file(deposit_id = zenodo_deposit, file_name = "ufrn_mun_male_pop.rds")
   11. │     └─zendown::mirror_deposit(...)
   12. │       └─zendown::download_deposit(...)
   13. │         └─curl::curl_download(url = url, destfile = file_path, quiet = quiet)
   14. └─curl:::raise_libcurl_error(...)
  ── Error ('test-pop_mun_consistency.R:50:3'): ufrn pop mun male is consistent ──
  <httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))`: HTTP 503 Service Unavailable.
  Backtrace:
       ▆
    1. ├─... %>% dplyr::filter(count > 1) at test-pop_mun_consistency.R:50:3
    2. ├─dplyr::filter(., count > 1)
    3. ├─dplyr::summarise(., count = dplyr::n())
    4. ├─dplyr::group_by(., freq)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::summarise(., freq = sum(pop, na.rm = TRUE))
    7. ├─dplyr::group_by(., year, age_group)
    8. ├─brpop:::ufrn_mun_male_pop()
    9. │ └─zendown::zen_file(deposit_id = zenodo_deposit, file_name = "ufrn_mun_male_pop.rds")
   10. │   └─zendown::mirror_deposit(...)
   11. │     └─zendown::list_deposit(deposit_id = deposit_id)
   12. │       ├─tidyr::unnest_wider(...)
   13. │       │ └─tidyr:::check_data_frame(data)
   14. │       │   └─base::is.data.frame(x)
   15. │       ├─tidyr::unnest_wider(...)
   16. │       │ └─tidyr:::check_data_frame(data)
   17. │       │   └─base::is.data.frame(x)
   18. │       └─tibble::tibble(httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))))
   19. │         └─tibble:::tibble_quos(xs, .rows, .name_repair)
   20. │           └─rlang::eval_tidy(xs[[j]], mask)
   21. ├─httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url))))
   22. │ └─httr2:::check_response(resp)
   23. │   └─httr2:::is_response(resp)
   24. └─httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))
   25.   └─httr2:::handle_resp(req, resp, error_call = error_call)
   26.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   27.       ├─rlang::catch_cnd(...)
   28.       │ ├─rlang::eval_bare(...)
   29.       │ ├─base::tryCatch(...)
   30.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   31.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   32.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   33.       │ └─base::force(expr)
   34.       └─rlang::abort(...)
  ── Error ('test-pop_mun_consistency.R:62:3'): ufrn pop mun female is consistent ──
  <httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))`: HTTP 503 Service Unavailable.
  Backtrace:
       ▆
    1. ├─... %>% dplyr::filter(count > 1) at test-pop_mun_consistency.R:62:3
    2. ├─dplyr::filter(., count > 1)
    3. ├─dplyr::summarise(., count = dplyr::n())
    4. ├─dplyr::group_by(., freq)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::summarise(., freq = sum(pop, na.rm = TRUE))
    7. ├─dplyr::group_by(., year, age_group)
    8. ├─brpop:::ufrn_mun_female_pop()
    9. │ └─zendown::zen_file(deposit_id = zenodo_deposit, file_name = "ufrn_mun_female_pop.rds")
   10. │   └─zendown::mirror_deposit(...)
   11. │     └─zendown::list_deposit(deposit_id = deposit_id)
   12. │       ├─tidyr::unnest_wider(...)
   13. │       │ └─tidyr:::check_data_frame(data)
   14. │       │   └─base::is.data.frame(x)
   15. │       ├─tidyr::unnest_wider(...)
   16. │       │ └─tidyr:::check_data_frame(data)
   17. │       │   └─base::is.data.frame(x)
   18. │       └─tibble::tibble(httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))))
   19. │         └─tibble:::tibble_quos(xs, .rows, .name_repair)
   20. │           └─rlang::eval_tidy(xs[[j]], mask)
   21. ├─httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url))))
   22. │ └─httr2:::check_response(resp)
   23. │   └─httr2:::is_response(resp)
   24. └─httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))
   25.   └─httr2:::handle_resp(req, resp, error_call = error_call)
   26.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   27.       ├─rlang::catch_cnd(...)
   28.       │ ├─rlang::eval_bare(...)
   29.       │ ├─base::tryCatch(...)
   30.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   31.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   32.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   33.       │ └─base::force(expr)
   34.       └─rlang::abort(...)
  ── Error ('test-pop_mun_consistency.R:74:3'): datasus2024 pop mun general is consistent ──
  <httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))`: HTTP 503 Service Unavailable.
  Backtrace:
       ▆
    1. ├─... %>% dplyr::filter(count > 1) at test-pop_mun_consistency.R:74:3
    2. ├─dplyr::filter(., count > 1)
    3. ├─dplyr::summarise(., count = dplyr::n())
    4. ├─dplyr::group_by(., freq)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::summarise(., freq = sum(pop, na.rm = TRUE))
    7. ├─dplyr::group_by(., year, age_group)
    8. ├─brpop::mun_pop_age(source = "datasus2024")
    9. │ └─brpop:::datasus2024_mun_male_pop()
   10. │   └─zendown::zen_file(deposit_id = zenodo_deposit, file_name = "datasus2024_mun_male_pop.rds")
   11. │     └─zendown::mirror_deposit(...)
   12. │       └─zendown::list_deposit(deposit_id = deposit_id)
   13. │         ├─tidyr::unnest_wider(...)
   14. │         │ └─tidyr:::check_data_frame(data)
   15. │         │   └─base::is.data.frame(x)
   16. │         ├─tidyr::unnest_wider(...)
   17. │         │ └─tidyr:::check_data_frame(data)
   18. │         │   └─base::is.data.frame(x)
   19. │         └─tibble::tibble(httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))))
   20. │           └─tibble:::tibble_quos(xs, .rows, .name_repair)
   21. │             └─rlang::eval_tidy(xs[[j]], mask)
   22. ├─httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url))))
   23. │ └─httr2:::check_response(resp)
   24. │   └─httr2:::is_response(resp)
   25. └─httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))
   26.   └─httr2:::handle_resp(req, resp, error_call = error_call)
   27.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   28.       ├─rlang::catch_cnd(...)
   29.       │ ├─rlang::eval_bare(...)
   30.       │ ├─base::tryCatch(...)
   31.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   32.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   33.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   34.       │ └─base::force(expr)
   35.       └─rlang::abort(...)
  ── Error ('test-pop_mun_consistency.R:86:3'): datasus2024 pop mun male is consistent ──
  <httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))`: HTTP 503 Service Unavailable.
  Backtrace:
       ▆
    1. ├─... %>% dplyr::filter(count > 1) at test-pop_mun_consistency.R:86:3
    2. ├─dplyr::filter(., count > 1)
    3. ├─dplyr::summarise(., count = dplyr::n())
    4. ├─dplyr::group_by(., freq)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::summarise(., freq = sum(pop, na.rm = TRUE))
    7. ├─dplyr::group_by(., year, age_group)
    8. ├─brpop:::datasus2024_mun_male_pop()
    9. │ └─zendown::zen_file(deposit_id = zenodo_deposit, file_name = "datasus2024_mun_male_pop.rds")
   10. │   └─zendown::mirror_deposit(...)
   11. │     └─zendown::list_deposit(deposit_id = deposit_id)
   12. │       ├─tidyr::unnest_wider(...)
   13. │       │ └─tidyr:::check_data_frame(data)
   14. │       │   └─base::is.data.frame(x)
   15. │       ├─tidyr::unnest_wider(...)
   16. │       │ └─tidyr:::check_data_frame(data)
   17. │       │   └─base::is.data.frame(x)
   18. │       └─tibble::tibble(httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))))
   19. │         └─tibble:::tibble_quos(xs, .rows, .name_repair)
   20. │           └─rlang::eval_tidy(xs[[j]], mask)
   21. ├─httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url))))
   22. │ └─httr2:::check_response(resp)
   23. │   └─httr2:::is_response(resp)
   24. └─httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))
   25.   └─httr2:::handle_resp(req, resp, error_call = error_call)
   26.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   27.       ├─rlang::catch_cnd(...)
   28.       │ ├─rlang::eval_bare(...)
   29.       │ ├─base::tryCatch(...)
   30.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   31.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   32.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   33.       │ └─base::force(expr)
   34.       └─rlang::abort(...)
  ── Error ('test-pop_uf_consistency.R:2:3'): datasus pop uf general is consistent ──
  <httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))`: HTTP 502 Bad Gateway.
  Backtrace:
       ▆
    1. ├─... %>% dplyr::filter(count > 1) at test-pop_uf_consistency.R:2:3
    2. ├─dplyr::filter(., count > 1)
    3. ├─dplyr::summarise(., count = dplyr::n())
    4. ├─dplyr::group_by(., freq)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::summarise(., freq = sum(pop, na.rm = TRUE))
    7. ├─dplyr::group_by(., year, age_group)
    8. ├─brpop::uf_pop_age(source = "datasus")
    9. │ └─brpop:::datasus_mun_female_pop()
   10. │   └─zendown::zen_file(deposit_id = zenodo_deposit, file_name = "datasus_mun_female_pop.rds")
   11. │     └─zendown::mirror_deposit(...)
   12. │       └─zendown::list_deposit(deposit_id = deposit_id)
   13. │         ├─tidyr::unnest_wider(...)
   14. │         │ └─tidyr:::check_data_frame(data)
   15. │         │   └─base::is.data.frame(x)
   16. │         ├─tidyr::unnest_wider(...)
   17. │         │ └─tidyr:::check_data_frame(data)
   18. │         │   └─base::is.data.frame(x)
   19. │         └─tibble::tibble(httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))))
   20. │           └─tibble:::tibble_quos(xs, .rows, .name_repair)
   21. │             └─rlang::eval_tidy(xs[[j]], mask)
   22. ├─httr2::resp_body_json(httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url))))
   23. │ └─httr2:::check_response(resp)
   24. │   └─httr2:::is_response(resp)
   25. └─httr2::req_perform(httr2::req_retry(httr2::request(base_url = base_url)))
   26.   └─httr2:::handle_resp(req, resp, error_call = error_call)
   27.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   28.       ├─rlang::catch_cnd(...)
   29.       │ ├─rlang::eval_bare(...)
   30.       │ ├─base::tryCatch(...)
   31.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   32.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   33.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   34.       │ └─base::force(expr)
   35.       └─rlang::abort(...)
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 13 ]
  Error: Test failures
  Execution halted