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