- using R version 4.3.3 (2024-02-29 ucrt)
- using platform: x86_64-w64-mingw32 (64-bit)
- R was compiled by
gcc.exe (GCC) 12.3.0
GNU Fortran (GCC) 12.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'ColOpenData/DESCRIPTION' ... OK
- this is package 'ColOpenData' version '0.3.0'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'ColOpenData' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [4s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [22s] ERROR
Running examples in 'ColOpenData-Ex.R' failed
The error most likely occurred in:
> ### Name: code_to_name_dep
> ### Title: Retrieve departments' DIVIPOLA names from codes
> ### Aliases: code_to_name_dep
>
> ### ** Examples
>
> dptos <- c("73", "05", "11")
> code_to_name_dep(dptos)
Error in file(file, "rt", encoding = fileEncoding) :
cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Calls: code_to_name_dep ... retrieve_table -> suppressMessages -> withCallingHandlers
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [367s] ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [366s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ColOpenData)
>
> test_check("ColOpenData")
[ FAIL 17 | WARN 0 | SKIP 4 | PASS 32 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test-documentation.R:17:3', 'test-documentation.R:36:3',
'test-documentation.R:49:3', 'test-documentation.R:81:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-aggregate_climate.R:6:1'): (code run outside of `test_that()`) ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/IDEAM_STATIONS_2023_MAY.csv'
Backtrace:
▆
1. └─ColOpenData::stations_in_roi(roi) at test-aggregate_climate.R:6:1
2. └─ColOpenData:::retrieve_table(data_path, ";")
3. ├─base::suppressMessages(...)
4. │ └─base::withCallingHandlers(...)
5. ├─base::suppressWarnings(...)
6. │ └─base::withCallingHandlers(...)
7. └─utils::read.csv2(...)
8. └─utils::read.table(...)
9. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:6:3'): Divipola department code throws errors ───────
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_warning(name_to_code_dep("CARTAGO")) at test-divipola.R:6:3
2. │ └─testthat:::expect_condition_matching(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─ColOpenData::name_to_code_dep("CARTAGO")
8. └─ColOpenData::divipola_table()
9. └─ColOpenData:::retrieve_table(dataset_path)
10. ├─base::suppressMessages(...)
11. │ └─base::withCallingHandlers(...)
12. ├─base::suppressWarnings(...)
13. │ └─base::withCallingHandlers(...)
14. └─utils::read.csv2(...)
15. └─utils::read.table(...)
16. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:14:3'): Divipola department code works as expected ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-divipola.R:14:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─ColOpenData::name_to_code_dep(...)
5. └─ColOpenData::divipola_table()
6. └─ColOpenData:::retrieve_table(dataset_path)
7. ├─base::suppressMessages(...)
8. │ └─base::withCallingHandlers(...)
9. ├─base::suppressWarnings(...)
10. │ └─base::withCallingHandlers(...)
11. └─utils::read.csv2(...)
12. └─utils::read.table(...)
13. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:40:3'): Divipola municipality code throws errors ────
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test-divipola.R:40:3
2. │ └─testthat:::expect_condition_matching(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─ColOpenData::name_to_code_mun(...)
8. └─ColOpenData::divipola_table()
9. └─ColOpenData:::retrieve_table(dataset_path)
10. ├─base::suppressMessages(...)
11. │ └─base::withCallingHandlers(...)
12. ├─base::suppressWarnings(...)
13. │ └─base::withCallingHandlers(...)
14. └─utils::read.csv2(...)
15. └─utils::read.table(...)
16. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:57:3'): Divipola municipality code works as expected ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-divipola.R:57:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─ColOpenData::name_to_code_mun(...)
5. └─ColOpenData::divipola_table()
6. └─ColOpenData:::retrieve_table(dataset_path)
7. ├─base::suppressMessages(...)
8. │ └─base::withCallingHandlers(...)
9. ├─base::suppressWarnings(...)
10. │ └─base::withCallingHandlers(...)
11. └─utils::read.csv2(...)
12. └─utils::read.table(...)
13. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:85:3'): Divipola department name throws errors ──────
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_warning(code_to_name_dep(c(73, "14"))) at test-divipola.R:85:3
2. │ └─testthat:::expect_condition_matching(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─ColOpenData::code_to_name_dep(c(73, "14"))
8. └─ColOpenData::divipola_table()
9. └─ColOpenData:::retrieve_table(dataset_path)
10. ├─base::suppressMessages(...)
11. │ └─base::withCallingHandlers(...)
12. ├─base::suppressWarnings(...)
13. │ └─base::withCallingHandlers(...)
14. └─utils::read.csv2(...)
15. └─utils::read.table(...)
16. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:93:3'): Divipola department name works as expected ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_identical(code_to_name_dep("05"), "Antioquia") at test-divipola.R:93:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─ColOpenData::code_to_name_dep("05")
5. └─ColOpenData::divipola_table()
6. └─ColOpenData:::retrieve_table(dataset_path)
7. ├─base::suppressMessages(...)
8. │ └─base::withCallingHandlers(...)
9. ├─base::suppressWarnings(...)
10. │ └─base::withCallingHandlers(...)
11. └─utils::read.csv2(...)
12. └─utils::read.table(...)
13. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:105:3'): Divipola municipality and department name throws errors ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_warning(code_to_name_mun(c("05001", "73048"))) at test-divipola.R:105:3
2. │ └─testthat:::expect_condition_matching(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─ColOpenData::code_to_name_mun(c("05001", "73048"))
8. └─ColOpenData::divipola_table()
9. └─ColOpenData:::retrieve_table(dataset_path)
10. ├─base::suppressMessages(...)
11. │ └─base::withCallingHandlers(...)
12. ├─base::suppressWarnings(...)
13. │ └─base::withCallingHandlers(...)
14. └─utils::read.csv2(...)
15. └─utils::read.table(...)
16. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:110:3'): Divipola municipality name works as expected ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_identical(code_to_name_mun("05051"), "Arboletes") at test-divipola.R:110:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─ColOpenData::code_to_name_mun("05051")
5. └─ColOpenData::divipola_table()
6. └─ColOpenData:::retrieve_table(dataset_path)
7. ├─base::suppressMessages(...)
8. │ └─base::withCallingHandlers(...)
9. ├─base::suppressWarnings(...)
10. │ └─base::withCallingHandlers(...)
11. └─utils::read.csv2(...)
12. └─utils::read.table(...)
13. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:115:3'): Translate divipola department name works as expected ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_identical(name_to_standard_dep("Bogota"), "Bogotá, D.C.") at test-divipola.R:115:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─ColOpenData::name_to_standard_dep("Bogota")
5. └─ColOpenData::name_to_code_dep(department_name)
6. └─ColOpenData::divipola_table()
7. └─ColOpenData:::retrieve_table(dataset_path)
8. ├─base::suppressMessages(...)
9. │ └─base::withCallingHandlers(...)
10. ├─base::suppressWarnings(...)
11. │ └─base::withCallingHandlers(...)
12. └─utils::read.csv2(...)
13. └─utils::read.table(...)
14. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-divipola.R:121:3'): Translate divipola municipality name works as expected ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-divipola.R:121:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─ColOpenData::name_to_standard_mun("Antioquia", "Sta fe de antioquia")
5. └─ColOpenData::name_to_code_mun(department_name, municipality_name)
6. └─ColOpenData::divipola_table()
7. └─ColOpenData:::retrieve_table(dataset_path)
8. ├─base::suppressMessages(...)
9. │ └─base::withCallingHandlers(...)
10. ├─base::suppressWarnings(...)
11. │ └─base::withCallingHandlers(...)
12. └─utils::read.csv2(...)
13. └─utils::read.table(...)
14. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-download_climate.R:14:1'): (code run outside of `test_that()`) ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/IDEAM_STATIONS_2023_MAY.csv'
Backtrace:
▆
1. └─ColOpenData::stations_in_roi(apicala) at test-download_climate.R:14:1
2. └─ColOpenData:::retrieve_table(data_path, ";")
3. ├─base::suppressMessages(...)
4. │ └─base::withCallingHandlers(...)
5. ├─base::suppressWarnings(...)
6. │ └─base::withCallingHandlers(...)
7. └─utils::read.csv2(...)
8. └─utils::read.table(...)
9. └─base::file(file, "rt", encoding = fileEncoding)
── Error ('test-download_demographic.R:14:3'): Download demographic works as expected ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/demographic/cnpv/hogares/DANE_CNPVH_2018_1HD.csv'
Backtrace:
▆
1. └─testthat::expect_snapshot(download_demographic("DANE_CNPVH_2018_1HD")) at test-download_demographic.R:14:3
2. └─rlang::cnd_signal(state$error)
── Error ('test-download_geospatial.R:19:3'): Download geospatial works as expected ──
<Rcpp::exception/C++Error/error/condition>
Error: Cannot open "https://tracelac.uniandes.edu.co:9000/colopendata/geospatial/mgn/DANE_MGN_2018_DPTO_SIM.gpkg"; Check connection parameters.
Backtrace:
▆
1. └─testthat::expect_snapshot(...) at test-download_geospatial.R:19:3
2. └─rlang::cnd_signal(state$error)
── Error ('test-download_geospatial.R:29:3'): Download geospatial works as expected with different parameters ──
<Rcpp::exception/C++Error/error/condition>
Error: Cannot open "https://tracelac.uniandes.edu.co:9000/colopendata/geospatial/mgn/DANE_MGN_2018_DPTO_SIM.gpkg"; Check connection parameters.
Backtrace:
▆
1. └─testthat::expect_snapshot(...) at test-download_geospatial.R:29:3
2. └─rlang::cnd_signal(state$error)
── Error ('test-download_population_projections.R:32:3'): Download pop_projections works as expected ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/population_projections/population_projections/DANE_PP_1985_2050_AD.csv'
Backtrace:
▆
1. └─testthat::expect_snapshot(...) at test-download_population_projections.R:32:3
2. └─rlang::cnd_signal(state$error)
── Error ('test-merge_geo_demographic.R:8:3'): Merge geospatial and demographic works as expected ──
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/demographic/cnpv/hogares/DANE_CNPVH_2018_1HD.csv'
Backtrace:
▆
1. └─testthat::expect_snapshot(merge_geo_demographic("DANE_CNPVH_2018_1HD")) at test-merge_geo_demographic.R:8:3
2. └─rlang::cnd_signal(state$error)
[ FAIL 17 | WARN 0 | SKIP 4 | PASS 32 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [144s] ERROR
Error(s) in re-building vignettes:
--- re-building 'climate_data.Rmd' using rmarkdown
Quitting from lines 110-113 [stations in roi] (climate_data.Rmd)
Error: processing vignette 'climate_data.Rmd' failed with diagnostics:
cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/IDEAM_STATIONS_2023_MAY.csv'
--- failed re-building 'climate_data.Rmd'
--- re-building 'demographic_data.Rmd' using rmarkdown
Quitting from lines 66-69 [data load] (demographic_data.Rmd)
Error: processing vignette 'demographic_data.Rmd' failed with diagnostics:
cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/demographic/cnpv/viviendas/DANE_CNPVV_2018_8VD.csv'
--- failed re-building 'demographic_data.Rmd'
--- re-building 'documentation_and_dictionaries.Rmd' using rmarkdown
Quitting from lines 199-201 [divipola-table] (documentation_and_dictionaries.Rmd)
Error: processing vignette 'documentation_and_dictionaries.Rmd' failed with diagnostics:
cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/support/DIVIPOLA.csv'
--- failed re-building 'documentation_and_dictionaries.Rmd'
--- re-building 'geospatial_data.Rmd' using rmarkdown
Quitting from lines 91-99 [download data] (geospatial_data.Rmd)
Error: processing vignette 'geospatial_data.Rmd' failed with diagnostics:
Cannot open "https://tracelac.uniandes.edu.co:9000/colopendata/geospatial/mgn/DANE_MGN_2018_DPTO_SIM.gpkg"; Check connection parameters.
--- failed re-building 'geospatial_data.Rmd'
--- re-building 'merge_geo_demographic.Rmd' using rmarkdown
Quitting from lines 56-59 [data] (merge_geo_demographic.Rmd)
Error: processing vignette 'merge_geo_demographic.Rmd' failed with diagnostics:
cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/demographic/cnpv/personas_demografico/DANE_CNPVPD_2018_14BPD.csv'
--- failed re-building 'merge_geo_demographic.Rmd'
--- re-building 'population_projections.Rmd' using rmarkdown
Quitting from lines 73-80 [download data] (population_projections.Rmd)
Error: processing vignette 'population_projections.Rmd' failed with diagnostics:
cannot open the connection to 'https://tracelac.uniandes.edu.co:9000/colopendata/population_projections/population_projections/DANE_PP_1950_2070_ASEN.csv'
--- failed re-building 'population_projections.Rmd'
SUMMARY: processing the following files failed:
'climate_data.Rmd' 'demographic_data.Rmd'
'documentation_and_dictionaries.Rmd' 'geospatial_data.Rmd'
'merge_geo_demographic.Rmd' 'population_projections.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [17s] OK
- checking HTML version of manual ... [7s] OK
- DONE
Status: 3 ERRORs