Running 'testthat.R' [15s]
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:504:5',
    'test-readtext.R:557:5', 'test-readtext.R:631:5', 'test-readtext.R:701:5',
    'test-readtext.R:711:5', 'test-readtext.R:721:5'
  • On Windows (4): 'test-encoding.R:4:5', 'test-readtext.R:577:5',
    'test-readtext.R:587:5', 'test-readtext.R:615: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)`: Recv failure: Connection was reset
  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)`: Recv failure: Connection was reset
  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