Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [17s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(fs)
  > 
  > test_check("fs")
  Saving _problems/test-sanitize-158.R
  Saving _problems/test-sanitize-158.R
  [ FAIL 2 | WARN 7 | SKIP 12 | PASS 3239 ]
  
  ══ Skipped tests (12) ══════════════════════════════════════════════════════════
  • On CRAN (11): 'test-create.R:44:3', 'test-create.R:71:3',
    'test-file.R:152:7', 'test-fs_bytes.R:94:3', 'test-fs_bytes.R:124:3',
    'test-fs_path.R:15:3', 'test-fs_perms.R:22:5', 'test-path.R:51:3',
    'test-path.R:651:3', 'test-path_select.R:21:1', 'test-tree.R:1:1'
  • need elevated permissions to change uid (1): 'test-file.R:187:7'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-sanitize.R:158:5'): filesystems can read, write and delete sanitized files ──
  Expected `writeLines("foobar", filepath)` not to throw any errors.
  Actually got a <simpleError> with message:
    cannot open the connection
  Backtrace:
       ▆
    1. └─fs (local) test_string_fs(str, td) at test-sanitize.R:158:5
    2.   ├─fs:::expect_error_free(writeLines("foobar", filepath)) at test-sanitize.R:96:3
    3.   │ └─testthat::expect_error(..., regexp = NA) at ./helper.R:26:3
    4.   │   └─testthat:::expect_condition_matching_(...)
    5.   │     └─testthat:::quasi_capture(...)
    6.   │       ├─testthat (local) .capture(...)
    7.   │       │ └─base::withCallingHandlers(...)
    8.   │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9.   └─base::writeLines("foobar", filepath)
   10.     └─base::file(con, "w")
  ── Error ('test-sanitize.R:158:5'): filesystems can read, write and delete sanitized files ──
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
      ▆
   1. └─fs (local) test_string_fs(str, td) at test-sanitize.R:158:5
   2.   ├─testthat::expect_equal(readLines(filepath), "foobar") at test-sanitize.R:99:3
   3.   │ └─testthat::quasi_label(enquo(object), label)
   4.   │   └─rlang::eval_bare(expr, quo_get_env(quo))
   5.   └─base::readLines(filepath)
   6.     └─base::file(con, "r")
  
  [ FAIL 2 | WARN 7 | SKIP 12 | PASS 3239 ]
  Error:
  ! Test failures.
  Execution halted