Access Argentinian Data via APIs and Curated Datasets
Overview
Provides functions to access data from public RESTful APIs including the 'ArgentinaDatos API', 'REST Countries API', and 'World Bank API' related to Argentina's exchange rates, inflation, political figures, holidays, economic indicators, and general country-level statistics. Additionally, the package includes curated datasets related to Argentina, covering topics such as economic indicators, biodiversity, agriculture, human rights, genetic data, and consumer prices. The package supports research and analysis focused on Argentina by integrating open APIs with high-quality datasets from various domains. For more details on the APIs, see: 'ArgentinaDatos API' https://argentinadatos.com/, 'REST Countries API' https://restcountries.com/, and 'World Bank API' https://datahelpdesk.worldbank.org/knowledgebase/articles/889392.
Bug Fixes
- Fixed
get_argentinian_holidays()to dynamically accept years up to the current year instead of being hardcoded to 2025, preventing validation errors in future years. - Improved error handling in
get_argentinian_holidays()to fail gracefully with informative messages when the API is unavailable, as required by CRAN policy. - Improved error handling in
get_argentine_senators()to fail gracefully with informative messages when the API is unavailable, as required by CRAN policy. - Fixed test for
get_argentine_senators()to properly handle NA values in date fields when checking sort order. - Updated validation messages to use dynamic year limits based on current date.
Technical Changes
- Added
tryCatch()blocks to API calls inget_argentinian_holidays()andget_argentine_senators()to handle network errors gracefully. - Changed validation errors to warnings with NULL returns to comply with CRAN's requirement that packages using Internet resources must not generate check errors when resources are unavailable.
---
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 22includes a package overview page
- Examples that run
- 57%8 run in a plain check (8 of them under a condition) · 1 only when donttest examples are enabled (R CMD check --as-cran) · 5 never run
- Exported functions with examples
- 67%
- Documented parameters
- 13%
- Return-value docs
- 67%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/lightbluetitan/argentinapi on 2026-10-21.
Dependencies
Installing ArgentinAPI adds 30 packages (18 with compiled code, 12 MB of source tarballs). Heaviest: farver 1.2 MB, viridisLite 1.2 MB, openssl 1.1 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.2.1Latest
- 0.2.02025-09-14 · diff ↗ ·
removed 1 export
get_country_infoadded 8 exports
get_argentina_child_mortality, get_argentina_energy_use, get_argentina_gdp, get_argentina_hospital_beds, get_argentina_life_expectancy, get_argentina_population, get_argentina_unemployment, get_country_info_ar - 0.1.02025-07-08
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-07-08
- Total releases
- 3 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 333 KB / 7 files
- Download size
- 483 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("ArgentinAPI")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.