Skip to content

ChileDataAPI

Access Chilean Data via APIs and Curated Datasets

v0.2.0 · Sep 11, 2025 · GPL-3

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

594

Last 30 days

6719th

1.6K

Last 90 days

4K

Last year

Trend: +6.8% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 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-macos-arm64 ERROR
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 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-devel-macos-arm64

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/rlang_error>
Error in `curl::curl_fetch_memory()`:
! Timeout was reached [findic.cl]:
Connection timed out after 10002 milliseconds
---
Backtrace:
    ▆
 1. ├─utils::head(get_chile_copper_pound(), n = 10)
 2. ├─ChileDataAPI::get_chile_copper_pound()
 3. │ └─httr::GET(url)
 4. │   └─httr:::request_perform(req, hu$handle$handle)
 5. │     ├─httr:::request_fetch(req$output, req$url, handle)
 6. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
 7. │       └─curl::curl_fetch_memory(url, handle = handle)
 8. └─curl:::raise_libcurl_error(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'ChileDataAPI_vignette.Rmd' failed with diagnostics:
Timeout was 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

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
ERROR r-devel-macos-arm64

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
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

depends

Dependency Network

Dependencies Reverse dependencies httr jsonlite dplyr tibble scales Latamverse ChileDataAPI

Version History

new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.0 diff Sep 10, 2025
new 0.1.0 Jul 15, 2025