Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rcreds)
  > 
  > test_check("rcreds")
  Will set (and possible create) three subfolders in the parent_folder
       /tmp/Rtmpk00Sxy
                     |-  /db_credential_files/
                     |-  /credential_files/
                     |-  /key_files/
  
  
   *** caught segfault ***
  address 0xffffffff, cause 'memory not mapped'
  
  Traceback:
   1: .Call(R_parse, txt, bigint_as_char)
   2: parse_string(txt, bigint_as_char)
   3: parseJSON(txt, bigint_as_char)
   4: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame,     simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
   5: jsonlite::fromJSON(json)
   6: doTryCatch(return(expr), name, parentenv, handler)
   7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8: tryCatchList(expr, classes, parentenv, handlers)
   9: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        msg <- conditionMessage(e)        sm <- strsplit(msg, "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption("show.error.messages"),         TRUE)) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  10: try(jsonlite::fromJSON(json), silent = TRUE)
  11: read_credentials_from_file()
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  14: tryCatchList(expr, classes, parentenv, handlers)
  15: tryCatch({    object    NULL}, error = function(e) {    e})
  16: expect_error(read_credentials_from_file(), "^Could not decrypt the file. This is probably due to the wrong key being used.")
  17: eval(code, test_env)
  18: eval(code, test_env)
  19: withCallingHandlers(eval(code, test_env), 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), expectation = handle_expectation,     skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error), error = function(e) {}, skip = function(e) {})
  27: test_code(desc, code, env = parent.frame())
  28: test_that(desc = "Checking Overwriting Abilities", code = {    stopifnot(require(magrittr))    set_default_rcreds_ALL(tempdir(), create = TRUE)    expect_message(key_object_1 <- rcreds::create_key(), "^Creating new key with bytes = 32  and  depth = 8\\.  seed was not set\\.\\n$")    expect_message(file.key_object_1 <- save_key(key = key_object_1),         "^key file written to .+$")    ret <- write_credentials_to_file(username = "I am the user",         password = "super secret batman", list_value = list("is",             1:5, c("even", "possible?")))    received_value <- read_credentials_from_file()    expected_value <- list(username = "I am the user", password = "super secret batman",         list_value = list("is", 1:5, c("even", "possible?")))    expect_equal(received_value, expected_value)    ret_new <- write_credentials_to_file(username = "New User Name",         password = "New Password")    received_value_new <- read_credentials_from_file()    expect_true(length(received_value_new) < length(received_value))    for (i in seq_along(ret_new)) {        nm <- names(received_value_new)[[i]]        expect_false(received_value_new[[nm]] == received_value[[nm]])    }    key_2 <- create_key()    save_key(key = key_2)    expect_error(read_credentials_from_file(), "^Could not decrypt the file. This is probably due to the wrong key being used.")})
  29: eval(exprs, env)
  30: eval(exprs, env)
  31: source_file(path, new.env(parent = env), chdir = TRUE)
  32: force(code)
  33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE)        end_context()    })
  34: FUN(X[[i]], ...)
  35: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE)
  36: force(code)
  37: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE))
  38: test_files(paths, reporter = reporter, env = env, ...)
  39: test_dir(test_path, reporter = reporter, env = env, filter = filter,     ...)
  40: with_top_env(env, {    test_dir(test_path, reporter = reporter, env = env, filter = filter,         ...)})
  41: run_tests(package, test_path, filter, reporter, ...)
  42: test_check("rcreds")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault