Running ‘test-all.R’ [62s/66s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("reproducible")
  Loading required package: reproducible
  Writing layer `file32d77f5e06f3' to data source `/tmp/RtmpdBj1Tp/working_dir/RtmpLq16wh/raster///file32d77f5e06f3.shp' using driver `ESRI Shapefile'
  Writing 3 features with 2 fields and geometry type Polygon.
  
   *** caught segfault ***
  address 0xc800010009, cause 'memory not mapped'
  
  Traceback:
   1: git2r::clone(url1, path.expand(localRepoPath), credentials = cred,     ...)
   2: checkoutVersion("PredictiveEcology/reproducible", localRepoPath = tmpDir,     progress = FALSE)
   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("git-related functions work", {    skip_on_os("windows")    skip_on_os("mac")    if (requireNamespace("git2r")) {        gitConfigOK <- tryCatch(.checkGitConfig(), error = function(e) FALSE)        if (gitConfigOK) {            tmpDir <- file.path(tempdir(), "test_git")            on.exit({                unlink(tmpDir, recursive = TRUE)            }, add = TRUE)            checkoutVersion("PredictiveEcology/reproducible",                 localRepoPath = tmpDir, progress = FALSE)            testRepo <- git2r::repository(tmpDir)            expect_true(dir.exists(tmpDir))            expect_false(git2r::is_empty(testRepo))            expect_false(git2r::is_bare(testRepo))            expect_false(git2r::is_detached(testRepo))            expect_true(git2r::is_local(git2r::branches(testRepo)$master))            expect_identical(git2r::remote_url(testRepo), "https://github.com/PredictiveEcology/reproducible.git")            rm(testRepo)            unlink(tmpDir, force = TRUE, recursive = TRUE)            expect_true(dir.create(tmpDir))            specificCommit <- "de5853669d801223306eaaa34d9299b0a846dae1"            checkoutVersion(paste0("PredictiveEcology/reproducible@",                 specificCommit), localRepoPath = tmpDir, progress = FALSE)            testRepo <- git2r::repository(tmpDir)            expect_false(git2r::is_empty(testRepo))            expect_false(git2r::is_bare(testRepo))            expect_true(git2r::is_detached(testRepo))            expect_true(git2r::is_local(git2r::branches(testRepo)$master))            expect_identical(git2r::remote_url(testRepo), "https://github.com/PredictiveEcology/reproducible.git")            if (isS4(testRepo)) {                expect_identical(git2r::head(testRepo)@sha, specificCommit)            }            else {                expect_identical(git2r::sha(git2r::repository_head(testRepo)),                   specificCommit)            }            rm(testRepo)            unlink(tmpDir, force = TRUE, recursive = TRUE)            checkoutVersion("PredictiveEcology/reproducible",                 localRepoPath = tmpDir, progress = FALSE)            testRepo <- git2r::repository(tmpDir)            expect_false(git2r::is_empty(testRepo))            expect_false(git2r::is_bare(testRepo))            expect_false(git2r::is_detached(testRepo))            expect_true(git2r::is_local(git2r::branches(testRepo)$master))            expect_identical(git2r::remote_url(testRepo), "https://github.com/PredictiveEcology/reproducible.git")            if (isS4(testRepo)) {                expect_identical(git2r::head(testRepo)@name,                   "master")            }            else {                expect_identical(git2r::repository_head(testRepo)$name,                   "master")            }            rm(testRepo)            unlink(tmpDir, force = TRUE, recursive = TRUE)            checkoutVersion("PredictiveEcology/SpaDES.addins",                 localRepoPath = tmpDir)            expect_error(git2r::checkoutVersion("PredictiveEcology/reproducible",                 localRepoPath = tmpDir))            unlink(tmpDir, force = TRUE, recursive = TRUE)        }    }})
  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: doWithOneRestart(return(expr), restart)
  29: withOneRestart(expr, restarts[[1L]])
  30: withRestarts(testthat_abort_reporter = function() NULL, 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: doWithOneRestart(return(expr), restart)
  36: withOneRestart(expr, restarts[[1L]])
  37: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  38: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  39: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  40: 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)
  41: 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)
  42: test_check("reproducible")
  An irrecoverable exception occurred. R is aborting now ...