Skip to content

Commit ece5b00

Browse files
authored
Merge branch 'opensdmx:master' into master
2 parents 34a2cc4 + bf9e0e8 commit ece5b00

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: rsdmx
22
Version: 0.6-4
3-
Date: 2024-09-13
3+
Date: 2024-12-12
44
Title: Tools for Reading SDMX Data and Metadata
55
Authors@R: c(
66
person("Emmanuel", "Blondel", role = c("aut", "cre"), email = "emmanuel.blondel1@gmail.com", comment = c(ORCID = "0000-0002-5870-5762")),

tests/testthat/test_Concepts.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test_that("Concepts 2.0 - with Concepts (backward compatibility with 1.0)",{
1616

1717
df <- as.data.frame(concepts)
1818
expect_is(df, "data.frame")
19-
expect_equal(colnames(df), c("id", "version","en"))
19+
expect_equal(colnames(df), c("id", "version","Name.en"))
2020
expect_equal(nrow(df), 15L)
2121
})
2222

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

3131
df <- as.data.frame(concepts)
3232
expect_is(df, "data.frame")
33-
expect_equal(colnames(df), c("id", "urn","en"))
33+
expect_equal(colnames(df), c("id", "urn","Name.en"))
3434
expect_equal(nrow(df), 15L)
3535
})
3636

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

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

tests/testthat/test_Main_Helpers.R

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -295,26 +295,27 @@ test_that("UNSD - data",{
295295

296296
#ILO_Legacy (UN-ILO)
297297
#------------
298-
299-
#-> datastructure
300-
test_that("ILO - datastructure",{
301-
testthat::skip_on_cran()
302-
sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "datastructure", resourceId = "YI_ALB_EAP_TEAP_SEX_AGE_NB")
303-
if(!is.null(sdmx)){
304-
expect_is(sdmx, "SDMXDataStructureDefinition")
305-
}
306-
})
307-
308-
#-> data
309-
test_that("ILO - data",{
310-
testthat::skip_on_cran()
311-
sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "data",
312-
flowRef = "DF_CPI_FRA_CPI_TCPI_COI_RT", key = "ALL", key.mode = "SDMX",
313-
start = "2010-01-01", end = "2014-12-31")
314-
if(!is.null(sdmx)){
315-
expect_is(sdmx, "SDMXGenericData")
316-
}
317-
})
298+
#gives Unauthorized 403 status codes now
299+
300+
# #-> datastructure
301+
# test_that("ILO - datastructure",{
302+
# testthat::skip_on_cran()
303+
# sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "datastructure", resourceId = "YI_ALB_EAP_TEAP_SEX_AGE_NB")
304+
# if(!is.null(sdmx)){
305+
# expect_is(sdmx, "SDMXDataStructureDefinition")
306+
# }
307+
# })
308+
#
309+
# #-> data
310+
# test_that("ILO - data",{
311+
# testthat::skip_on_cran()
312+
# sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "data",
313+
# flowRef = "DF_CPI_FRA_CPI_TCPI_COI_RT", key = "ALL", key.mode = "SDMX",
314+
# start = "2010-01-01", end = "2014-12-31")
315+
# if(!is.null(sdmx)){
316+
# expect_is(sdmx, "SDMXGenericData")
317+
# }
318+
# })
318319

319320
#ILO (UN-ILO)
320321
#------------

0 commit comments

Comments
 (0)