* using log directory 'd:/Rcompile/CRANpkg/local/4.5/readtext.Rcheck' * using R Under development (unstable) (2024-06-03 r86679 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'readtext/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'readtext' version '0.91' * 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 'readtext' can be installed ... OK * 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 code 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 whether startup messages can be suppressed ... [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 ... [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 ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [26s] ERROR Running 'testthat.R' [26s] Running the tests in 'tests/testthat.R' failed. Complete output: > Sys.setenv("R_TESTS" = "") > > library("testthat") > library("readtext") > > # save, then reset, readtext options > opts <- readtext_options() > readtext_options(reset = TRUE) > > # set the soon-to-be-official-R-policy condition > Sys.setenv("_R_CHECK_LENGTH_1_CONDITION_" = TRUE) > > test_check("readtext") [ FAIL 2 | WARN 0 | SKIP 12 | PASS 151 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • On CRAN (7): 'test-readtext.R:118:5', 'test-readtext.R:503:5', 'test-readtext.R:556:5', 'test-readtext.R:630:5', 'test-readtext.R:700:5', 'test-readtext.R:710:5', 'test-readtext.R:720:5' • On Windows (4): 'test-encoding.R:4:5', 'test-readtext.R:576:5', 'test-readtext.R:586:5', 'test-readtext.R:614:5' • skipping test of option setting when readtext is not attached (1): 'test-readtext_options.R:32:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-readtext.R:85:5'): test remote text file ─────────────────────── Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Timeout was reached: [raw.githubusercontent.com] Resolving timed out after 10008 milliseconds Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-readtext.R:85:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─readtext::readtext("https://raw.githubusercontent.com/kbenoit/readtext/master/tests/data/fox/fox.txt") 5. └─readtext:::list_files(...) 6. ├─base::unlist(...) 7. └─base::lapply(...) 8. └─readtext (local) FUN(X[[i]], ...) 9. └─readtext:::list_file(...) 10. ├─readtext:::list_files(...) 11. └─readtext:::download_remote(file, ignore_missing, cache, verbosity) 12. └─readtext:::cache_remote(url, ignore_missing, cache, name, verbosity) 13. └─httr::GET(url, write_disk(path, overwrite = TRUE)) 14. └─httr:::request_perform(req, hu$handle$handle) 15. ├─httr:::request_fetch(req$output, req$url, handle) 16. └─httr:::request_fetch.write_disk(req$output, req$url, handle) 17. └─curl::curl_fetch_disk(url, x$path, handle = handle) ── Error ('test-readtext.R:108:5'): test remote csv file ─────────────────────── Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Could not resolve host: raw.githubusercontent.com Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-readtext.R:108:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─readtext::readtext(...) 5. └─readtext:::list_files(...) 6. ├─base::unlist(...) 7. └─base::lapply(...) 8. └─readtext (local) FUN(X[[i]], ...) 9. └─readtext:::list_file(...) 10. ├─readtext:::list_files(...) 11. └─readtext:::download_remote(file, ignore_missing, cache, verbosity) 12. └─readtext:::cache_remote(url, ignore_missing, cache, name, verbosity) 13. └─httr::GET(url, write_disk(path, overwrite = TRUE)) 14. └─httr:::request_perform(req, hu$handle$handle) 15. ├─httr:::request_fetch(req$output, req$url, handle) 16. └─httr:::request_fetch.write_disk(req$output, req$url, handle) 17. └─curl::curl_fetch_disk(url, x$path, handle = handle) [ FAIL 2 | WARN 0 | SKIP 12 | PASS 151 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [6s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 1 ERROR