Skip to content

Commit

Permalink
#67 add UIS (UNESCO) SDMX web-service connector
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 6, 2015
1 parent 443a3cb commit a336203
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/SDMXServiceProvider-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ setSDMXServiceProviders <- function(){
SDMXServiceProvider(
"ILO", "International Labour Organization of the United Nations",
SDMXRESTRequestBuilder("http://www.ilo.org/ilostat/sdmx/ws/rest", FALSE)
),

#UIS (UNESCO)
SDMXServiceProvider(
"UIS", "UNESCO Institute of Statistics",
SDMXRESTRequestBuilder("http://data.uis.unesco.org/RestSDMX/sdmx.ashx", TRUE)
)

)
Expand Down
10 changes: 10 additions & 0 deletions tests/testthat/test_Main_Helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,13 @@ test_that("Dataset - UN-ILO",{
expect_is(sdmx, "SDMXGenericData")
})

#UIS (UNESCO)
test_that("Dataset - UIS (UNESCO)",{
testthat::skip_on_travis()
testthat::skip_on_cran()
sdmx <- readSDMX(agencyId = "UIS", operation = "GetData",
key = "EDULIT_DS", filter = list("OFST_1_CP", NULL), filter.native = TRUE,
start = "2000", end = "2015")
expect_is(sdmx, "SDMXGenericData")
})

0 comments on commit a336203

Please sign in to comment.