addSDMXServiceProvider {rsdmx} | R Documentation |
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" |
Author(s)
Emmanuel Blondel, emmanuel.blondel1@gmail.com
See Also
getSDMXServiceProviders findSDMXServiceProvider readSDMX
Examples
#create a provider
myBuilder <- SDMXREST20RequestBuilder(regUrl = "http://www.myorg.org/registry",
repoUrl = "http://www.myorg.org/repository",
compliant = 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(slot(getSDMXServiceProviders(), "providers"), function(x){slot(x, "agencyId")})
[Package rsdmx version 0.6-3 Index]