Skip to content

Enhancement: Add documentation to clarify country coverage of IDS + add related informative error handling #47

@t-emery

Description

@t-emery

From @jakobmiethe.bsky.social:

Hi Teal, playing around a bit and it seems the package throws an error if the geographies argument includes a country for which there is no data (for that specific series?). "API Error Code 160" I expected it to return NAs for those countries but return data for the others. Always an issue when working on tax havens that are sometimes independent countries, sometimes not... Is this intentional? Best, Jakob

I asked for example code, and he provided it:

plotdata <- ids_get(
geographies = "FRA",
series = c("FI.RES.TOTL.DT.ZS"),
# counterparts = "all",
start_date = 1970,
end_date = 2023
)

I guess if I write: plotdata <- ids_get(
geographies = c("VUT","FRA"),
series = c("FI.RES.TOTL.DT.ZS"),
# counterparts = "all",
start_date = 1970,
end_date = 2023
)
I'd expect to get the data for VUT with NAs for FRA but not a break

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions