Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RcppCWB)
  > 
  > test_check("RcppCWB")
  ── 1. Failure: attribute size s-attribute places (@test_attribute_size.R#14)  ──
  `N` not equal to 20.
  1/1 mismatches
  [1] -11 - 20 == -31
  
  ── 2. Failure: attribute size p-attribute word (@test_attribute_size.R#27)  ────
  `N` not equal to 4050.
  1/1 mismatches
  [1] -11 - 4050 == -4061
  
  ── 3. Error: cpos2lbound (@test_cpos2lbound.R#8)  ──────────────────────────────
  all corpus positions (cpos) need to be <= attribute size, not TRUE
  1: cl_cpos2lbound(corpus = "REUTERS", s_attribute = "places", cpos = 5L, registry = system.file(package = "RcppCWB", 
         "extdata", "cwb", "registry")) at testthat/test_cpos2lbound.R:8
  2: check_cpos(corpus = corpus, p_attribute = "word", cpos = cpos, registry = registry)
  3: stop("all corpus positions (cpos) need to be <= attribute size, not TRUE")
  
  ── 4. Error: cpos2rbound (@test_cpos2rbound.R#8)  ──────────────────────────────
  all corpus positions (cpos) need to be <= attribute size, not TRUE
  1: cl_cpos2rbound(corpus = "REUTERS", s_attribute = "places", cpos = 5L, registry = system.file(package = "RcppCWB", 
         "extdata", "cwb", "registry")) at testthat/test_cpos2rbound.R:8
  2: check_cpos(corpus = corpus, p_attribute = "word", cpos = cpos, registry = registry)
  3: stop("all corpus positions (cpos) need to be <= attribute size, not TRUE")
  
  
   *** caught segfault ***
  address (nil), cause 'memory not mapped'
  
  Traceback:
   1: .cl_cpos2str(corpus = corpus, p_attribute = p_attribute, registry = registry,     cpos = cpos)
   2: cl_cpos2str(corpus = "REUTERS", p_attribute = "word", registry = system.file(package = "RcppCWB",     "extdata", "cwb", "registry"), cpos = 0L:3L)
   3: eval(code, test_env)
   4: eval(code, test_env)
   5: 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)
   6: doTryCatch(return(expr), name, parentenv, handler)
   7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  11: tryCatchList(expr, classes, parentenv, handlers)
  12: 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) {    })
  13: test_code(desc, code, env = parent.frame())
  14: test_that("cpos2str", {    token <- cl_cpos2str(corpus = "REUTERS", p_attribute = "word",         registry = system.file(package = "RcppCWB", "extdata",             "cwb", "registry"), cpos = 0L:3L)    expect_equal(token, c("Diamond", "Shamrock", "Corp", "said"))})
  15: eval(code, test_env)
  16: eval(code, test_env)
  17: 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)
  18: doTryCatch(return(expr), name, parentenv, handler)
  19: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  20: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  21: doTryCatch(return(expr), name, parentenv, handler)
  22: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  23: tryCatchList(expr, classes, parentenv, handlers)
  24: 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) {    })
  25: test_code(NULL, exprs, env)
  26: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  27: force(code)
  28: 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()    })
  29: FUN(X[[i]], ...)
  30: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  31: force(code)
  32: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  33: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  34: 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)
  35: 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)
  36: test_check("RcppCWB")
  An irrecoverable exception occurred. R is aborting now ...