Learn R Programming

rsdmx (version 0.5-0)

addSDMXServiceProvider: addSDMXServiceProvider

Description

function that allows configuring a new SDMXServiceProvider as part of the list of providers known by rsdmx, hence by readSDMX

Usage

addSDMXServiceProvider(provider)

Arguments

provider
an object of class "SDMXServiceProvider"

See Also

getSDMXServiceProviders findSDMXServiceProvider readSDMX

Examples

Run this code
#create a provider
  myBuilder <- SDMXRESTRequestBuilder(baseUrl = "http://www.myorg.",
                                      suffix = TRUE)
  myProvider <- SDMXServiceProvider(
    agencyId = "MYORG", name = "My Organization",
    builder = myBuilder
  )

  #add it
  addSDMXServiceProvider(myProvider)
  
  #check out the list of existing provider (only list the agency Ids)
  sapply(getSDMXServiceProviders(), function(x){slot(x, "agencyId")})

Run the code above in your browser using DataLab