Skip to content

Commit

Permalink
fix formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel authored Jan 8, 2025
1 parent 29c1eec commit b1ee832
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/SDMXServiceProvider-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1ee832

Please sign in to comment.