* using log directory ‘/srv/hornik/tmp/CRAN/ColOpenData.Rcheck’ * using R Under development (unstable) (2024-08-23 r87049) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 18.1.8 (9) Debian flang-new version 18.1.8 (9) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘ColOpenData/DESCRIPTION’ ... OK * this is package ‘ColOpenData’ version ‘0.3.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [5s/9s] NOTE Maintainer: ‘Maria Camila Tavera-Cifuentes ’ New submission Possibly misspelled words in DESCRIPTION: Geospatial (2:52) IDEAM (25:47) geospatial (24:58) * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking serialization versions ... OK * checking whether package ‘ColOpenData’ can be installed ... [2s/2s] OK * checking package directory ... OK * checking for future file timestamps ... 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/0s] OK * checking loading without being on the library search path ... [0s/0s] 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 ... [3s/3s] OK * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... 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 ... [0s/0s] 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 ... [0s/1s] ERROR Running examples in ‘ColOpenData-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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 ... [8s/116s] ERROR Running ‘spelling.R’ [0s/0s] Running ‘testthat.R’ [7s/116s] 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 2 | WARN 0 | SKIP 13 | PASS 57 ] ══ Skipped tests (13) ══════════════════════════════════════════════════════════ • On CRAN (13): 'test-documentation.R:17:3', 'test-documentation.R:36:3', 'test-documentation.R:49:3', 'test-documentation.R:81:3', 'test-download_climate.R:27:3', 'test-download_climate.R:92:3', 'test-download_climate.R:113:3', 'test-download_climate.R:151:3', 'test-download_demographic.R:14:3', 'test-download_geospatial.R:19:3', 'test-download_geospatial.R:29:3', 'test-download_population_projections.R:32:3', 'test-merge_geo_demographic.R:8: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) [ FAIL 2 | WARN 0 | SKIP 13 | PASS 57 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [19s/120s] OK * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs, 1 NOTE