# set cores for testing on CRAN:
library(restatapi)
options(restatapi_cores=1)
# view available HICP data sets:
datasets()
# get allowed filters for item weights:
datafilters(id="prc_hicp_iw")
# download item weights since 2015 for euro area:
data(id="prc_hicp_iw", filters=list("geo"="EA"), date.range=c("2015", NA))
Run the code above in your browser using DataLab