From 82e3d08e762814df7dc9639393948af6c6cb1f4a Mon Sep 17 00:00:00 2001 From: Allen <64019758+aboddie@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:45:23 -0500 Subject: [PATCH 1/2] Add IMF Data Portal as service provider --- R/SDMXServiceProvider-methods.R | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/R/SDMXServiceProvider-methods.R b/R/SDMXServiceProvider-methods.R index b333c38..95ef2dd 100644 --- a/R/SDMXServiceProvider-methods.R +++ b/R/SDMXServiceProvider-methods.R @@ -159,6 +159,14 @@ setSDMXServiceProviders <- function(){ # nocov start repoUrl = "https://sdmxcentral.imf.org/ws/public/sdmxapi/rest", compliant = TRUE) ) + #IMF_DATA + IMF_DATA <- SDMXServiceProvider( + agencyId = "IMF_DATA", name = "International Monetary Fund - Data Portal", + builder = SDMXREST21RequestBuilder( + regUrl = "https://api.imf.org/external/sdmx/2.1", + repoUrl = "https://api.imf.org/external/sdmx/2.1", + compliant = TRUE) + ) #OECD OECD <- SDMXServiceProvider( From 3e6bc3f2a8f8ce69aa0ae9166b1457857f994697 Mon Sep 17 00:00:00 2001 From: Allen <64019758+aboddie@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:48:13 -0500 Subject: [PATCH 2/2] Add IMF_DATA as service provider --- R/SDMXServiceProvider-methods.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/SDMXServiceProvider-methods.R b/R/SDMXServiceProvider-methods.R index 95ef2dd..1a535c7 100644 --- a/R/SDMXServiceProvider-methods.R +++ b/R/SDMXServiceProvider-methods.R @@ -566,7 +566,7 @@ setSDMXServiceProviders <- function(){ # nocov start listOfProviders <- list( #international - BIS, ECB, ESTAT,ESTAT_COMEXT, ESTAT_COMP, ESTAT_GROW, ESTAT_EMPL, IMF, OECD, UNICEF, CD2030, UNSD, ILO_Legacy, ILO, WBG_WITS, WB, PDH, + BIS, ECB, ESTAT,ESTAT_COMEXT, ESTAT_COMP, ESTAT_GROW, ESTAT_EMPL, IMF, IMF_DATA, OECD, UNICEF, CD2030, UNSD, ILO_Legacy, ILO, WBG_WITS, WB, PDH, #national ABS, NBB, INSEE, INEGI, ISTAT_LEGACY, ISTAT, NOMIS, LSD, NCSI, STAT_EE, BBK, #others