Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pccc)
  > 
  > test_check("pccc")
  
   *** caught segfault ***
  address 0x200000001f, cause 'memory not mapped'
  
  Traceback:
   1: (function (n) {    if (existsInFrame(n, envenv))         envenv[[n]]    else {        e <- mkenv()        envenv[[n]] <- e        key <- env[[n]]        data <- lazyLoadDBfetch(key, datafile, compressed, envhook)        parent.env(e) <- if (!is.null(data$enclos))             data$enclos        else emptyenv()        list2env(data$bindings, e)        if (!is.null(data$attributes))             attributes(e) <- data$attributes        if (!is.null(data$isS4) && data$isS4)             .Internal(setS4Object(e, TRUE, TRUE))        if (!is.null(data$locked) && data$locked)             .Internal(lockEnvironment(e, FALSE))        e    }})("env::7")
   2: exists(name, inlineHandlers, inherits = FALSE)
   3: getInlineHandler(name, info$package)
   4: tryInline(call, cb, cntxt)
   5: cmpCall(e, cb, cntxt)
   6: cmp(e, cb, cntxt, setloc = FALSE)
   7: genCode(body(f), ncntxt, loc = loc)
   8: cmpfun(f)
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: tryCatchList(expr, classes, parentenv, handlers)
  12: tryCatch(cmpfun(f), error = function(e) {    notifyCompilerError(paste(e$message, "at", deparse(e$call)))    f})
  13: compiler:::tryCmpfun(function (..., .list = NULL) {    args <- c(list(...), .list)    new_size <- private$count + length(args)    while (new_size > length(private$stack)) {        private$stack[length(private$stack) * 2L] <- list(NULL)    }    private$stack[private$count + seq_along(args)] <- args    private$count <- new_size    invisible(self)})
  14: self$results$push(list(file = self$current_file %||% NA_character_,     context = context, test = test, user = elapsed[1], system = elapsed[2],     real = elapsed[3], results = self$current_expectations$as_list()))
  15: x[[method]](...)
  16: FUN(X[[i]], ...)
  17: lapply(objects, function(x) x[[method]](...))
  18: o_apply(self$reporters, "end_test", context, test)
  19: get_reporter()$end_test(context = get_reporter()$.context, test = test)
  20: test_code(desc, code, env = parent.frame())
  21: test_that(paste0("Checking that ICD", code, " dx code drawn from '",     row, "' has all other categories set to false."), {    expect_true(all(tmp == 0))})
  22: eval(code, test_env)
  23: eval(code, test_env)
  24: 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)
  25: doTryCatch(return(expr), name, parentenv, handler)
  26: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  27: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  28: doTryCatch(return(expr), name, parentenv, handler)
  29: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  30: tryCatchList(expr, classes, parentenv, handlers)
  31: 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) {    })
  32: test_code(NULL, exprs, env)
  33: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  34: force(code)
  35: 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()    })
  36: FUN(X[[i]], ...)
  37: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  38: force(code)
  39: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  40: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  41: 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)
  42: 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)
  43: test_check("pccc")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault