opensdmx/rsdmx

Error with SDMXStructureType validation when validate = TRUE

kenarab opened this issue · 1 comments

When running a modification of default example from readSDMX help file for validating SDMX-ML:

url <- paste("http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/",
              "cdh_e_fos/all/?startperiod=2000&endPeriod=2010",
              sep = "")
sdmx <- readSDMX(url,validate = TRUE)

Returns an error:

Error in switch(type, DataflowsType = TRUE, ConceptsType = TRUE, CodelistsType = TRUE,  : 
  EXPR must be a length 1 vector 

I downloaded package and debugued it and the problem is in getStructureType is obj@subtype is null

Fixed