Skip to content

Commit

Permalink
Merge branch 'opensdmx:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
aboddie authored Dec 12, 2024
2 parents 34a2cc4 + bf9e0e8 commit ece5b00
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rsdmx
Version: 0.6-4
Date: 2024-09-13
Date: 2024-12-12
Title: Tools for Reading SDMX Data and Metadata
Authors@R: c(
person("Emmanuel", "Blondel", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0002-5870-5762")),
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test_Concepts.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test_that("Concepts 2.0 - with Concepts (backward compatibility with 1.0)",{

df <- as.data.frame(concepts)
expect_is(df, "data.frame")
expect_equal(colnames(df), c("id", "version","en"))
expect_equal(colnames(df), c("id", "version","Name.en"))
expect_equal(nrow(df), 15L)
})

Expand All @@ -30,7 +30,7 @@ test_that("Concepts - 2.0 - with ConceptSchemes",{

df <- as.data.frame(concepts)
expect_is(df, "data.frame")
expect_equal(colnames(df), c("id", "urn","en"))
expect_equal(colnames(df), c("id", "urn","Name.en"))
expect_equal(nrow(df), 15L)
})

Expand All @@ -44,6 +44,6 @@ test_that("Concepts - 2.1 - with ConceptSchemes",{

df <- as.data.frame(concepts)
expect_is(df, "data.frame")
expect_equal(colnames(df), c("id", "urn","en"))
expect_equal(colnames(df), c("id", "urn","Name.en"))
expect_equal(nrow(df), 15L)
})
41 changes: 21 additions & 20 deletions tests/testthat/test_Main_Helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -295,26 +295,27 @@ test_that("UNSD - data",{

#ILO_Legacy (UN-ILO)
#------------

#-> datastructure
test_that("ILO - datastructure",{
testthat::skip_on_cran()
sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "datastructure", resourceId = "YI_ALB_EAP_TEAP_SEX_AGE_NB")
if(!is.null(sdmx)){
expect_is(sdmx, "SDMXDataStructureDefinition")
}
})

#-> data
test_that("ILO - data",{
testthat::skip_on_cran()
sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "data",
flowRef = "DF_CPI_FRA_CPI_TCPI_COI_RT", key = "ALL", key.mode = "SDMX",
start = "2010-01-01", end = "2014-12-31")
if(!is.null(sdmx)){
expect_is(sdmx, "SDMXGenericData")
}
})
#gives Unauthorized 403 status codes now

# #-> datastructure
# test_that("ILO - datastructure",{
# testthat::skip_on_cran()
# sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "datastructure", resourceId = "YI_ALB_EAP_TEAP_SEX_AGE_NB")
# if(!is.null(sdmx)){
# expect_is(sdmx, "SDMXDataStructureDefinition")
# }
# })
#
# #-> data
# test_that("ILO - data",{
# testthat::skip_on_cran()
# sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "data",
# flowRef = "DF_CPI_FRA_CPI_TCPI_COI_RT", key = "ALL", key.mode = "SDMX",
# start = "2010-01-01", end = "2014-12-31")
# if(!is.null(sdmx)){
# expect_is(sdmx, "SDMXGenericData")
# }
# })

#ILO (UN-ILO)
#------------
Expand Down

0 comments on commit ece5b00

Please sign in to comment.