Skip to content

Changed IMF API Dataflow structure - #15

Open
mitcda wants to merge 1 commit into
mingjerli:masterfrom
mitcda:master
Open

Changed IMF API Dataflow structure#15
mitcda wants to merge 1 commit into
mingjerli:masterfrom
mitcda:master

Conversation

@mitcda

@mitcda mitcda commented Oct 14, 2017

Copy link
Copy Markdown

The IMF API Dataflow structure appears to have recently changed, causing the DataflowMethod function to return an empty data frame. Proposed changes reference the changed IMF Dataflow structure.

@mingjerli

Copy link
Copy Markdown
Owner

Hi @mitcda , do you mind to provide more detail about why you get an empty data framm so I can reproduce the problem. I can still use the CRAN version of package without any trouble at this time.

@mitcda

mitcda commented Oct 16, 2017

Copy link
Copy Markdown
Author

Hi @mingjerli, here's what happens when I run the DataflowMethod and CompactDataMethod functions from the IMFData package on CRAN.

> DataflowMethod()
data frame with 0 columns and 0 rows

And when I run CompactDataMethod with checkquery=TRUE, it returns the following error, which on tracing back, appears due to the DataflowMethod function returning an empty data frame.

> databaseID <- 'IFS'
> startdate='2001-01-01'
> enddate='2016-12-31'
> checkquery = FALSE
> queryfilter <- list(CL_FREQ="", CL_AREA_IFS="GR", CL_INDICATOR_IFS=c("NGDP_EUR","NGDP_XDC"))

> GR.NGDP.query <- CompactDataMethod(databaseID, queryfilter, startdate, enddate, checkquery=TRUE)
Error in CompactDataMethod(databaseID, queryfilter, startdate, enddate,  : 
  databaseID is not exist in API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants