worldbank / pipr

R client to the PIP API
https://worldbank.github.io/pipr
Other
13 stars 4 forks source link

get_stats example does not work. #71

Open shahronak47 opened 1 year ago

shahronak47 commented 1 year ago

Descripition

The following example from the documentation does not work

res <- get_stats(c("ARG", "BRA"), year = "all", subgroup = "none")
Error in parse_response(res, simplify) : object 'parsed' not found

Also,

res <- get_stats(c("ARG", "BRA"), year = "all", subgroup = "wb")
Error: Client error: (400) Bad Request
* You supplied an invalid value for country. Please use one of the valid values.
* Use simplify = FALSE to see the full error response.