Skip to content

Commit

Permalink
exports
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Dec 16, 2024
1 parent 0509480 commit f26eabf
Show file tree
Hide file tree
Showing 51 changed files with 132 additions and 38 deletions.
44 changes: 44 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,52 @@ S3method(as.data.frame,SDMXServiceProviders)
S3method(as.data.frame,SDMXStructureSpecificData)
S3method(as.data.frame,SDMXStructureSpecificTimeSeriesData)
S3method(as.data.frame,SDMXUtilityData)
export(SDMX)
export(SDMXAgency)
export(SDMXAgencyScheme)
export(SDMXAttribute)
export(SDMXCode)
export(SDMXCodelist)
export(SDMXCodelists)
export(SDMXCompactData)
export(SDMXComponents)
export(SDMXConcept)
export(SDMXConceptScheme)
export(SDMXConcepts)
export(SDMXCrossSectionalData)
export(SDMXData)
export(SDMXDataFlow)
export(SDMXDataFlows)
export(SDMXDataStructure)
export(SDMXDataStructureDefinition)
export(SDMXDataStructures)
export(SDMXDimension)
export(SDMXDotStatRequestBuilder)
export(SDMXFooter)
export(SDMXFooterMessage)
export(SDMXGenericData)
export(SDMXHeader)
export(SDMXMessageGroup)
export(SDMXOrganisation)
export(SDMXOrganisationSchemes)
export(SDMXPrimaryMeasure)
export(SDMXREST20RequestBuilder)
export(SDMXREST21RequestBuilder)
export(SDMXRequestBuilder)
export(SDMXRequestParams)
export(SDMXSchema)
export(SDMXServiceProvider)
export(SDMXServiceProviders)
export(SDMXStructureSpecificData)
export(SDMXStructureSpecificTimeSeriesData)
export(SDMXStructureType)
export(SDMXTimeDimension)
export(SDMXType)
export(SDMXUtilityData)
export(getStructureType)
export(readSDMX)
export(rsdmxLogger)
export(saveSDMX)
import(R6)
import(XML)
import(httr)
Expand Down
3 changes: 2 additions & 1 deletion R/SDMX-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMX"
#'
#' @seealso \link{readSDMX}

#' @export
#'
SDMX <- function(xmlObj, namespaces){
schema <- SDMXSchema(xmlObj, namespaces);
header <- SDMXHeader(xmlObj, namespaces);
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXAgency-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXAgency"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXAgency <- function(xmlObj, namespaces){
obj <- organisation.SDMXOrganisation(xmlObj, namespaces, "SDMXAgency")
}
3 changes: 2 additions & 1 deletion R/SDMXAgencyScheme-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXAgencyScheme"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXAgencyScheme <- function(xmlObj, namespaces){

messageNs <- findNamespace(namespaces, "message")
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXAttribute-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#' @return an object of class "SDMXAttribute"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXAttribute <- function(xmlObj, namespaces){

messageNs <- findNamespace(namespaces, "message")
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXCode-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXCode"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXCode <- function(xmlObj, namespaces){

messageNs <- findNamespace(namespaces, "message")
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXCodelist-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXCodelist"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXCodelist <- function(xmlObj, namespaces){

messageNs <- findNamespace(namespaces, "message")
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXCodelists-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXCodelists"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXCodelists <- function(xmlObj, namespaces){
new("SDMXCodelists",
SDMX(xmlObj, namespaces),
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXCompactData-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXCompactData"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXCompactData <- function(xmlObj, namespaces){
new("SDMXCompactData",
SDMXData(xmlObj, namespaces)
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXComponents-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXComponents"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXComponents <- function(xmlObj, namespaces){
new("SDMXComponents",
Dimensions = dimensions.SDMXComponents(xmlObj, namespaces),
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXConcept-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXConcept"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXConcept <- function(xmlObj, namespaces){

messageNs <- findNamespace(namespaces, "message")
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXConceptScheme-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXConceptScheme"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXConceptScheme <- function(xmlObj, namespaces){

messageNs <- findNamespace(namespaces, "message")
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXConcepts-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXConcepts"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXConcepts <- function(xmlObj, namespaces){
new("SDMXConcepts",
SDMX(xmlObj, namespaces),
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXCrossSectionalData-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXCrossSectionalData"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXCrossSectionalData <- function(xmlObj, namespaces){
new("SDMXCrossSectionalData",
SDMXData(xmlObj, namespaces)
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXData-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#' @return an object of class "SDMXData"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXData <- function(xmlObj, namespaces){

sdmxObj <- SDMX(xmlObj, namespaces)
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXDataFlow-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXDataFlow"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXDataFlow <- function(xmlObj, namespaces){

messageNs <- findNamespace(namespaces, "message")
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXDataFlows-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXDataFlows"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXDataFlows <- function(xmlObj, namespaces){
new("SDMXDataFlows",
SDMX(xmlObj, namespaces),
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXDataStructure-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXDataStructure"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXDataStructure <- function(xmlObj, namespaces){

sdmxVersion <- version.SDMXSchema(xmlDoc(xmlObj), namespaces)
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXDataStructureDefinition-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXDataStructureDefinition"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXDataStructureDefinition <- function(xmlObj, namespaces){
new("SDMXDataStructureDefinition",
SDMX(xmlObj, namespaces),
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXDataStructures-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXDataStructures"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXDataStructures <- function(xmlObj, namespaces){
new("SDMXDataStructures",
SDMX(xmlObj, namespaces),
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXDimension-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXDimension"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXDimension <- function(xmlObj, namespaces){

sdmxVersion <- version.SDMXSchema(xmlDoc(xmlObj), namespaces)
Expand Down
1 change: 1 addition & 0 deletions R/SDMXDotStatRequestBuilder-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#' @param headers an object of class "list" that contains any additional headers for the request.
#'
#'@note Internal class
#' @export
#'
SDMXDotStatRequestBuilder <- function(regUrl, repoUrl, accessKey = NULL,
unsupportedResources = list(),
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXFooter-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXFooter"
#'
#' @seealso \link{readSDMX}

#' @export
#'
SDMXFooter <- function(xmlObj, namespaces){

messageList = list()
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXFooterMessage-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#' @return an object of class "SDMXFooterMessage"
#'
#' @seealso \link{SDMXFooter} \link{readSDMX}

#' @export
#'
SDMXFooterMessage <- function(xmlObj){

#code
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXGenericData-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXGenericData"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXGenericData <- function(xmlObj, namespaces){
new("SDMXGenericData",
SDMXData(xmlObj, namespaces)
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXHeader-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXHeader"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXHeader <- function(xmlObj, namespaces){

sdmxVersion <- version.SDMXSchema(xmlObj, namespaces)
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXMessageGroup-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXMessageGroup"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXMessageGroup <- function(xmlObj, namespaces){
new("SDMXMessageGroup",
SDMXData(xmlObj, namespaces)
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXOrganisation-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXOrganisation"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXOrganisation <- function(xmlObj, namespaces){
obj <- organisation.SDMXOrganisation(xmlObj, namespaces, "SDMXOrganisation")
}
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXOrganisationSchemes-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "OrganisationSchemes"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXOrganisationSchemes <- function(xmlObj, namespaces){
new("SDMXOrganisationSchemes",
SDMX(xmlObj, namespaces),
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXPrimaryMeasure-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#' @return an object of class "SDMXPrimaryMeasure"
#'
#' @seealso \link{readSDMX}
#'
#' @export
#'
SDMXPrimaryMeasure <- function(xmlObj, namespaces){

sdmxVersion <- version.SDMXSchema(xmlDoc(xmlObj), namespaces)
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXREST20RequestBuilder-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
#' requestBuilder <- SDMXREST20RequestBuilder(
#' regUrl = "http://www.myorg/registry",
#' repoUrl = "http://www.myorg/repository", compliant = FALSE)
#'
#' @export
#'
SDMXREST20RequestBuilder <- function(regUrl, repoUrl, accessKey = NULL, compliant,
unsupportedResources = list(),
skipProviderId = FALSE, forceProviderId = FALSE,
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXREST21RequestBuilder-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
#' regUrl = "http://www.myorg/registry",
#' repoUrl = "http://www.myorg/repository",
#' compliant = TRUE)
#'
#' @export
#'
SDMXREST21RequestBuilder <- function(regUrl, repoUrl, accessKey = NULL, compliant,
unsupportedResources = list(),
skipProviderId = FALSE, forceProviderId = FALSE,
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXRequestBuilder-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
#' repoUrl = "http://www.myorg.org/repository",
#' accessKey = NULL,
#' formatter = myFormatter, handler = myHandler, compliant = FALSE)
#'
#' @export
#'
SDMXRequestBuilder <- function(regUrl, repoUrl, accessKey = NULL,
formatter, handler, compliant,
unsupportedResources = list(), headers = list()){
Expand Down
3 changes: 2 additions & 1 deletion R/SDMXRequestParams-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
#' providerId = "", agencyId ="", resource = "data", resourceId = "",
#' version = "", flowRef = "", key = NULL, start = NULL, end = NULL, compliant = FALSE
#' )
#'
#' @export
#'
SDMXRequestParams <- function(regUrl, repoUrl, accessKey, providerId, agencyId, resource, resourceId, version = NULL,
flowRef, key = NULL, start = NULL, end = NULL, compliant){
new("SDMXRequestParams",
Expand Down
1 change: 1 addition & 0 deletions R/SDMXSchema-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#' @return an object of class "SDMXSchema"
#'
#' @seealso \link{readSDMX}
#' @export
#'

SDMXSchema <- function(xmlObj, namespaces) {
Expand Down
2 changes: 2 additions & 0 deletions R/SDMXServiceProvider-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#' provider <- SDMXServiceProvider(agencyId = "MYORG", name = "My Organization",
#' builder = myBuilder)
#'
#' @export
#'
SDMXServiceProvider <- function(agencyId, name,
scale = "international", country = as.character(NA),
builder) {
Expand Down
Loading

0 comments on commit f26eabf

Please sign in to comment.