Skip to contents

Create a dataset with GDP data from World Economic Outlook.

Usage

aux_weo(
  action = c("update", "load"),
  force = FALSE,
  owner = getOption("pipfun.ghowner"),
  maindir = getOption("pipaux.working_dir"),
  tag = NULL,
  detail = getOption("pipaux.detail.raw")
)

Arguments

action

character: Either "load" or "update". Default is "update". If "update" data will be updated on the system. If "load" data is loaded in memory.

force

logical: If TRUE data will be overwritten.

owner

character: Github repo owner. Default is getOption("pipfun.ghowner")

maindir

character: Main directory of project.

tag

character: specific release to be used in the update.

detail

has an option TRUE/FALSE, default value is FALSE

Details

Note that the most recent version most be downloaded from imf.org and saved as an .xls file in <maindir>/_aux/weo/. The filename should be in the following structure WEO_<YYYY-DD-MM>.xls. Due to potential file corruption the file must be opened and re-saved before it can be updated with aux_weo(). Hopefully in the future IMF will stop using an .xls file that's not really xls.