worldbank / pipr

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

get_dictionary() throws error #59

Closed ryancbriggs closed 1 year ago

ryancbriggs commented 1 year ago

Describition

The get_dictionary() function throws an error and returns nothing.

Reproducible example

Running the following: library(pipr) get_dictionary()

returns the following: Error in data.table::setnames(df, old = c("survey_year", "reporting_year", : Items of 'old' not found in column names: [survey_year, reporting_year, reporting_pop, reporting_gdp, reporting_pce, pce_data_level]. Consider skip_absent=TRUE. In addition: Warning message: Setting row names on a tibble is deprecated.

Expected behavior

I've never run this before, but I was hoping for information on e.g. the "mean" column, which seems to have changed from povcalnet to pip. The documentation for get_dictionary() literally suggests running it empty (first example), so I don't think that is the issue.

Diagnostic information

Using pipr 0.0.4 and R 4.2.0