From b1ee8323ddec0a426497368651d2094c9ec30fde Mon Sep 17 00:00:00 2001 From: Emmanuel Blondel Date: Wed, 8 Jan 2025 10:00:58 +0100 Subject: [PATCH] fix formatter --- R/SDMXServiceProvider-methods.R | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/R/SDMXServiceProvider-methods.R b/R/SDMXServiceProvider-methods.R index fd5c645..5e43d5e 100644 --- a/R/SDMXServiceProvider-methods.R +++ b/R/SDMXServiceProvider-methods.R @@ -169,9 +169,12 @@ setSDMXServiceProviders <- function(){ # nocov start regUrl = "https://api.imf.org/external/sdmx/2.1", repoUrl = "https://api.imf.org/external/sdmx/2.1", compliant = TRUE, - formatter$datastructure = function(obj){ - if(is.null(obj@references)) obj@references = "descendants" - return(obj)}) + formatter = list( + datastructure = function(obj){ + if(is.null(obj@references)) obj@references = "descendants" + return(obj) + } + ) ) #OECD