Running ‘spelling.R’
  Running ‘testthat.R’ [3s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(filesstrings)
  Loading required package: stringr
  > 
  > test_check("filesstrings")
  ── 1. Error: nice_file_nums works (@test_files.R#9)  ───────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'character'
  1: expect_equal(nice_file_nums(), rep(TRUE, 3)) at testthat/test_files.R:9
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: nice_file_nums()
  5: file.rename(lf, nice_nums(lf))
  6: nice_nums(lf)
  7: checkmate::assert(checkmate::check_numeric(strings), checkmate::check_character(strings))
  8: assertChoice(combine, c("or", "and"))
  9: checkChoice(x, choices, null.ok, fmatch)
  10: qassert(null.ok, "B1")
  
  ── 2. Error: rename_with_nums works (@test_files.R#47)  ────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'bytecode'
  1: expect_equal(rename_with_nums(pattern = ".txt$"), rep(TRUE, 3)) at testthat/test_files.R:47
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: rename_with_nums(pattern = ".txt$")
  5: nice_nums(paste0(seq_len(l), ".", ext))
  6: checkmate::assert(checkmate::check_numeric(strings), checkmate::check_character(strings))
  7: assertChoice(combine, c("or", "and"))
  8: checkChoice(x, choices, null.ok, fmatch)
  9: qassert(null.ok, "B1")
  
  ── 3. Error: unitize_dirs works (@test_files.R#89)  ────────────────────────────
  STRING_ELT() can only be applied to a 'character vector', not a 'builtin'
  1: expect_true(unitize_dirs("litres", "\\.txt")) at testthat/test_files.R:89
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: unitize_dirs("litres", "\\.txt")
  5: move_files(files, paste0(i, unit))
  6: checkmate::assert_file_exists(files)
  7: checkFileExists(x, access, extension)
  8: qtest(x, "S+")
  
  ── 4. Failure: file.move edge cases work correctly (@test_files.R#102)  ────────
  `file.move("tmpfile0.R", c("tmpdir0", "tmpdir0"))` threw an error with unexpected message.
  Expected match: "number of destinations must.*1 or.*number of files to be moved"
  Actual message: "STRING_ELT() can only be applied to a 'character vector', not a 'symbol'"
  
  ── 5. Failure: file.move edge cases work correctly (@test_files.R#106)  ────────
  `file.move(c("tmpfile0.R", "tmpfile0.R"), c("tmpdir0", "tmpdir0"))` threw an error with unexpected message.
  Expected match: "must not have.*duplicated elements.*Element 2.*duplicate"
  Actual message: "STRING_ELT() can only be applied to a 'character vector', not a 'symbol'"
  
  
   *** caught segfault ***
  address 613ee7be, cause 'memory not mapped'
  
  Traceback:
   1: qtest(x, "S+")
   2: checkFileExists(x, access, extension)
   3: checkmate::assert_file_exists(files)
   4: file.move("tmpfile0.R", "tmpdir0/")
   5: eval(code, test_env)
   6: eval(code, test_env)
   7: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  13: tryCatchList(expr, classes, parentenv, handlers)
  14: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  15: test_code(desc, code, env = parent.frame())
  16: test_that("file.move edge cases work correctly", {    cwd <- setwd(tempdir())    on.exit(setwd(cwd))    dir.create("tmpdir0")    file.create("tmpfile0.R")    expect_error(file.move("tmpfile0.R", c("tmpdir0", "tmpdir0")),         "number of destinations must.*1 or.*number of files to be moved")    expect_error(file.move(c("tmpfile0.R", "tmpfile0.R"), c("tmpdir0",         "tmpdir0")), "must not have.*duplicated elements.*Element 2.*duplicate")    file.move("tmpfile0.R", "tmpdir0/")    file.create("tmpfile0.R")    expect_message(file.move("tmpfile0.R", "tmpdir0/"), "To allow overwriting, use `overwrite = TRUE`")    expect_message(file.move("tmpfile0.R", "tmpdir0/", overwrite = TRUE),         "1 file moved. 0 failed.")    expect_message(file.move(character(0), character(0)), "0 files moved. 0 failed.")    setwd(cwd)})
  17: eval(code, test_env)
  18: eval(code, test_env)
  19: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  20: doTryCatch(return(expr), name, parentenv, handler)
  21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  25: tryCatchList(expr, classes, parentenv, handlers)
  26: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  27: test_code(NULL, exprs, env)
  28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  29: force(code)
  30: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  31: FUN(X[[i]], ...)
  32: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  33: force(code)
  34: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  35: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  36: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  37: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  38: test_check("filesstrings")
  An irrecoverable exception occurred. R is aborting now ...