The package IMFdata returns a list of dataframes.
IMFdata
For example:
library(IMFData) databaseID <- "IFS" startdate = "2019-0