ChileDataAPI
Access Chilean Data via APIs and Curated Datasets
Description
Provides functions to access data from public RESTful APIs including 'FINDIC API', 'REST Countries API', 'World Bank API', and 'Nager.Date', retrieving real-time or historical data related to Chile such as financial indicators, holidays, international demographic and geopolitical indicators, and more. Additionally, the package includes curated datasets related to Chile, covering topics such as human rights violations during the Pinochet regime, electoral data, census samples, health surveys, seismic events, territorial codes, and environmental measurements. The package supports research and analysis focused on Chile by integrating open APIs with high-quality datasets from multiple domains. For more information on the APIs, see: 'FINDIC' <https://findic.cl/>, 'REST Countries' <https://restcountries.com/>, 'World Bank API' <https://datahelpdesk.worldbank.org/knowledgebase/articles/889392>, and 'Nager.Date' <https://date.nager.at/Api>.
Downloads
465
Last 30 days
7656th
1.7K
Last 90 days
5K
Last year
Trend: -20.8% (30d vs prior 30d)
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | ERROR |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (1 non-OK)
tests
Running ‘testthat.R’ [12s/67s]
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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ChileDataAPI)
>
> test_check("ChileDataAPI")
API request failed.
Saving _problems/test-get_country_info_cl-33.R
Saving _problems/test-get_country_info_cl-34.R
Saving _problems/test-get_country_info_cl-35.R
Saving _problems/test-get_country_info_cl-36.R
Saving _problems/test-get_country_info_cl-37.R
Saving _problems/test-get_country_info_cl-38.R
Saving _problems/test-get_country_info_cl-39.R
Saving _problems/test-get_country_info_cl-40.R
API request failed.
Saving _proble
...[truncated]...
RUE
── Failure ('test-get_country_info_cl.R:86:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$region) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:87:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$subregion) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:88:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$capital) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:89:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$languages) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
[ FAIL 37 | WARN 0 | SKIP 198 | PASS 218 ]
Error:
! Test failures.
Execution halted
Check History
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 31, 2026
tests
Running ‘testthat.R’ [12s/67s] 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 ...[truncated]... ) returns character strings for text fields ── Expected `nchar(result$languages) > 0` to be TRUE. Differences: `actual`: `expected`: TRUE [ FAIL 37 | WARN 0 | SKIP 198 | PASS 218 ] Error: ! Test failures. Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 7, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 6, 2026
tests
Running ‘testthat.R’ [8s/73s] 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 t ...[truncated]... equest_fetch.write_memory(req$output, req$url, handle) 6. │ └─curl::curl_fetch_memory(url, handle = handle) 7. └─curl:::raise_libcurl_error(...) [ FAIL 5 | WARN 0 | SKIP 198 | PASS 224 ] Error: ! Test failures. Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 5, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building ‘ChileDataAPI_vignette.Rmd’ using rmarkdown Quitting from ChileDataAPI_vignette.Rmd:112-120 [chile-copper] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rla ...[truncated]... reached [findic.cl]: Connection timed out after 10002 milliseconds --- failed re-building ‘ChileDataAPI_vignette.Rmd’ SUMMARY: processing the following file failed: ‘ChileDataAPI_vignette.Rmd’ Error: Vignette re-building failed. Execution halted