Running ‘spelling.R’
  Running ‘testthat.R’ [14s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(vroom)
  > 
  > test_check("vroom")
  ── 1. Error: vroom works with many connections (@test-multi-file.R#90)  ────────
  Evaluation error: cannot open the connection.
  1: vroom::vroom(files) at testthat/test-multi-file.R:90
  2: vroom_(file, delim = delim, col_names = col_names, col_types = col_types, id = id, 
         skip = skip, col_select = col_select, na = na, quote = quote, trim_ws = trim_ws, 
         escape_double = escape_double, escape_backslash = escape_backslash, comment = comment, 
         locale = locale, guess_max = guess_max, n_max = n_max, altrep_opts = vroom_altrep_opts(altrep_opts), 
         num_threads = num_threads, progress = progress)
  
  ── 2. Error: vroom can trim whitespace (@test-vroom.R#38)  ─────────────────────
  cannot open the connection
  1: test_vroom("a,b,c\n\tfoo\t,\t\tbar\t\t,baz\n", delim = ",", equals = tibble::tibble(a = "foo", 
         b = "bar", c = "baz")) at testthat/test-vroom.R:38
  2: file(tf, "wb") at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:21
  
  ── 3. Error: vroom can read files with quotes (@test-vroom.R#54)  ──────────────
  cannot open the connection
  1: test_vroom("\"a\",\"b\",\"c\"\n\"foo\",\"bar\",\"baz\"\n", delim = ",", equals = tibble::tibble(a = "foo", 
         b = "bar", c = "baz")) at testthat/test-vroom.R:54
  2: withr::with_envvar(c(VROOM_USE_ALTREP_CHR = "true", VROOM_USE_ALTREP_NUMERICS = "true"), 
         {
             expect_equal(vroom(content, ...), equals)
         }) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:3
  3: force(code)
  4: expect_equal(vroom(content, ...), equals) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:4
  5: quasi_label(enquo(object), label, arg = "object")
  6: eval_bare(get_expr(quo), get_env(quo))
  7: vroom(content, ...)
  8: standardise_path(file)
  9: chr_to_file(path, envir = parent.frame())
  10: file(out, "wb")
  
  ── 4. Error: vroom escapes double quotes (@test-vroom.R#68)  ───────────────────
  cannot open the connection
  1: test_vroom("\"a\",\"b\",\"c\"\n\"\"\"fo\"\"o\",\"b\"\"\"\"ar\",\"baz\"\"\"\n", delim = ",", 
         equals = tibble::tibble(a = "\"fo\"o", b = "b\"\"ar", c = "baz\"")) at testthat/test-vroom.R:68
  2: withr::with_envvar(c(VROOM_USE_ALTREP_CHR = "true", VROOM_USE_ALTREP_NUMERICS = "true"), 
         {
             expect_equal(vroom(content, ...), equals)
         }) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:3
  3: force(code)
  4: expect_equal(vroom(content, ...), equals) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:4
  5: quasi_label(enquo(object), label, arg = "object")
  6: eval_bare(get_expr(quo), get_env(quo))
  7: vroom(content, ...)
  8: standardise_path(file)
  9: chr_to_file(path, envir = parent.frame())
  10: file(out, "wb")
  
  ── 5. Error: vroom escapes backslashes (@test-vroom.R#74)  ─────────────────────
  cannot open the connection
  1: test_vroom("a,b,c\n\\,foo,\\\"ba\\\"r,baz\\\"\n", delim = ",", escape_backslash = TRUE, 
         equals = tibble::tibble(a = ",foo", b = "\"ba\"r", c = "baz\"")) at testthat/test-vroom.R:74
  2: withr::with_envvar(c(VROOM_USE_ALTREP_CHR = "true", VROOM_USE_ALTREP_NUMERICS = "true"), 
         {
             expect_equal(vroom(content, ...), equals)
         }) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:3
  3: force(code)
  4: expect_equal(vroom(content, ...), equals) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:4
  5: quasi_label(enquo(object), label, arg = "object")
  6: eval_bare(get_expr(quo), get_env(quo))
  7: vroom(content, ...)
  8: standardise_path(file)
  9: chr_to_file(path, envir = parent.frame())
  10: file(out, "wb")
  
  ── 6. Error: vroom ignores leading whitespace (@test-vroom.R#80)  ──────────────
  cannot open the connection
  1: test_vroom("\n\n   \t \t\n  \n\na,b,c\n1,2,3\n", delim = ",", equals = tibble::tibble(a = 1, 
         b = 2, c = 3)) at testthat/test-vroom.R:80
  2: withr::with_envvar(c(VROOM_USE_ALTREP_CHR = "true", VROOM_USE_ALTREP_NUMERICS = "true"), 
         {
             expect_equal(vroom(content, ...), equals)
         }) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:3
  3: force(code)
  4: expect_equal(vroom(content, ...), equals) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:4
  5: quasi_label(enquo(object), label, arg = "object")
  6: eval_bare(get_expr(quo), get_env(quo))
  7: vroom(content, ...)
  8: standardise_path(file)
  9: chr_to_file(path, envir = parent.frame())
  10: file(out, "wb")
  
  ── 7. Error: vroom ignores comments (@test-vroom.R#86)  ────────────────────────
  cannot open the connection
  1: test_vroom("\n\n \t #a,b,c\na,b,c\n1,2,3\n", delim = ",", comment = "#", equals = tibble::tibble(a = 1, 
         b = 2, c = 3)) at testthat/test-vroom.R:86
  2: withr::with_envvar(c(VROOM_USE_ALTREP_CHR = "true", VROOM_USE_ALTREP_NUMERICS = "true"), 
         {
             expect_equal(vroom(content, ...), equals)
         }) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:3
  3: force(code)
  4: expect_equal(vroom(content, ...), equals) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:4
  5: quasi_label(enquo(object), label, arg = "object")
  6: eval_bare(get_expr(quo), get_env(quo))
  7: vroom(content, ...)
  8: standardise_path(file)
  9: chr_to_file(path, envir = parent.frame())
  10: file(out, "wb")
  
  ── 8. Error: vroom respects skip (@test-vroom.R#92)  ───────────────────────────
  cannot open the connection
  1: test_vroom("#a,b,c\na,b,c\n1,2,3\n", delim = ",", skip = 1, equals = tibble::tibble(a = 1, 
         b = 2, c = 3)) at testthat/test-vroom.R:92
  2: withr::with_envvar(c(VROOM_USE_ALTREP_CHR = "true", VROOM_USE_ALTREP_NUMERICS = "true"), 
         {
             expect_equal(vroom(content, ...), equals)
         }) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:3
  3: force(code)
  4: expect_equal(vroom(content, ...), equals) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:4
  5: quasi_label(enquo(object), label, arg = "object")
  6: eval_bare(get_expr(quo), get_env(quo))
  7: vroom(content, ...)
  8: standardise_path(file)
  9: chr_to_file(path, envir = parent.frame())
  10: file(out, "wb")
  
  ── 9. Error: vroom respects col_types (@test-vroom.R#110)  ─────────────────────
  cannot open the connection
  1: test_vroom("a,b,c\n1,2,3\n", delim = ",", col_types = "idc", equals = tibble::tibble(a = 1L, 
         b = 2, c = "3")) at testthat/test-vroom.R:110
  2: withr::with_envvar(c(VROOM_USE_ALTREP_CHR = "true", VROOM_USE_ALTREP_NUMERICS = "true"), 
         {
             expect_equal(vroom(content, ...), equals)
         }) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:3
  3: force(code)
  4: expect_equal(vroom(content, ...), equals) at /home/ripley/R/packages/tests32/vroom.Rcheck/tests/testthat/helper.R:4
  5: quasi_label(enquo(object), label, arg = "object")
  6: eval_bare(get_expr(quo), get_env(quo))
  7: vroom(content, ...)
  8: standardise_path(file)
  9: chr_to_file(path, envir = parent.frame())
  10: file(out, "wb")
  
  
   *** caught segfault ***
  address e, cause 'memory not mapped'
  
  Traceback:
   1: vroom_(file, delim = delim, col_names = col_names, col_types = col_types,     id = id, skip = skip, col_select = col_select, na = na, quote = quote,     trim_ws = trim_ws, escape_double = escape_double, escape_backslash = escape_backslash,     comment = comment, locale = locale, guess_max = guess_max,     n_max = n_max, altrep_opts = vroom_altrep_opts(altrep_opts),     num_threads = num_threads, progress = progress)
   2: vroom(as.raw(c(239, 187, 191, 65, 10)), col_names = FALSE)
   3: eval_bare(get_expr(quo), get_env(quo))
   4: quasi_label(enquo(object), label, arg = "object")
   5: expect_equal(vroom(as.raw(c(239, 187, 191, 65, 10)), col_names = FALSE)[[1]],     "A")
   6: eval(code, test_env)
   7: eval(code, test_env)
   8: 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)
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  14: tryCatchList(expr, classes, parentenv, handlers)
  15: 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) {    })
  16: test_code(desc, code, env = parent.frame())
  17: test_that("vroom handles UTF byte order marks", {    expect_equal(vroom(as.raw(c(239, 187, 191, 65, 10)), col_names = FALSE)[[1]],         "A")    expect_equal(vroom(as.raw(c(254, 255, 65, 10)), col_names = FALSE)[[1]],         "A")    expect_equal(vroom(as.raw(c(255, 254, 65, 10)), col_names = FALSE)[[1]],         "A")    expect_equal(vroom(as.raw(c(0, 0, 254, 255, 65, 10)), col_names = FALSE)[[1]],         "A")    expect_equal(vroom(as.raw(c(255, 254, 0, 0, 65, 10)), col_names = FALSE)[[1]],         "A")})
  18: eval(code, test_env)
  19: eval(code, test_env)
  20: 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)
  21: doTryCatch(return(expr), name, parentenv, handler)
  22: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  23: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  24: doTryCatch(return(expr), name, parentenv, handler)
  25: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  26: tryCatchList(expr, classes, parentenv, handlers)
  27: 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) {    })
  28: test_code(NULL, exprs, env)
  29: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  30: force(code)
  31: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        reporter$start_file(basename(path))        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        reporter$.end_context()        reporter$end_file()    })
  32: FUN(X[[i]], ...)
  33: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  34: force(code)
  35: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  36: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  37: 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)
  38: 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)
  39: test_check("vroom")
  An irrecoverable exception occurred. R is aborting now ...