Running 'testthat.R' [3s/3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(lhs)
  > 
  > test_check("lhs")
  
   *** caught segfault ***
  address 0x30, cause 'memory not mapped'
  
  Traceback:
   1: dim(X)
   2: apply(X, 2, min)
   3: checkLatinHypercube(A)
   4: eval_bare(get_expr(quo), get_env(quo))
   5: quasi_label(enquo(object), label, arg = "object")
   6: expect_true(checkLatinHypercube(A))
   7: eval(code, test_env)
   8: eval(code, test_env)
   9: 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)
  10: doTryCatch(return(expr), name, parentenv, handler)
  11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  13: doTryCatch(return(expr), name, parentenv, handler)
  14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  15: tryCatchList(expr, classes, parentenv, handlers)
  16: 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) {    })
  17: test_code(desc, code, env = parent.frame())
  18: test_that("optimumLHS works", {    expect_error(optimumLHS(-1, 2))    expect_error(optimumLHS(10, -30))    expect_error(optimumLHS(10, 2, -2))    expect_error(optimumLHS(10, 2, 3, -1))    expect_error(optimumLHS(10, 2, 3, 1.5))    expect_error(optimumLHS(10, 2, 3, 1))    expect_error(optimumLHS(10, 2, 3, 0))    expect_error(optimumLHS(NA, 2))    expect_error(optimumLHS(NaN, 2))    expect_warning(expect_error(optimumLHS(Inf, 2)))    expect_error(optimumLHS(10, NA))    expect_error(optimumLHS(10, NaN))    expect_warning(expect_error(optimumLHS(10, Inf)))    expect_error(optimumLHS(10, 2, NA))    expect_error(optimumLHS(10, 2, NaN))    expect_warning(expect_error(optimumLHS(10, 2, Inf)))    expect_error(optimumLHS(10, 2, 2, NA))    expect_error(optimumLHS(10, 2, 2, NaN))    expect_error(optimumLHS(10, 2, 2, Inf))    set.seed(1976)    rTemp <- optimumLHS(4, 2)    expect_true(checkLatinHypercube(rTemp))    set.seed(1977)    rTemp <- optimumLHS(3, 3, 5)    expect_true(checkLatinHypercube(rTemp))    set.seed(1978)    rTemp <- optimumLHS(5, 2, 5, 0.5)    expect_true(checkLatinHypercube(rTemp))    set.seed(2010)    for (i in 2:6) {        for (j in 2:6) {            A <- optimumLHS(i, j)            expect_true(checkLatinHypercube(A))        }    }    set.seed(2011)    for (i in 2:6) {        for (j in 2:6) {            A <- optimumLHS(i, j, 5)            expect_true(checkLatinHypercube(A))        }    }    set.seed(2012)    for (i in 2:6) {        for (j in 2:6) {            A <- optimumLHS(i, j, 5, 0.05)            expect_true(checkLatinHypercube(A))        }    }    expect_error(.Call("optimumLHS_cpp", 3, 4L, 4L, 0.01, FALSE))    X <- .Call("optimumLHS_cpp", 1L, 4L, 4L, 0.01, FALSE)    expect_equal(nrow(X), 1)    A <- optimumLHS(1, 4)    expect_equal(nrow(A), 1)    expect_true(checkLatinHypercube(A))})
  19: eval(code, test_env)
  20: eval(code, test_env)
  21: 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)
  22: doTryCatch(return(expr), name, parentenv, handler)
  23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  25: doTryCatch(return(expr), name, parentenv, handler)
  26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  27: tryCatchList(expr, classes, parentenv, handlers)
  28: 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) {    })
  29: test_code(NULL, exprs, env)
  30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  31: force(code)
  32: 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()    })
  33: FUN(X[[i]], ...)
  34: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  35: force(code)
  36: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  37: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  38: 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)
  39: 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)
  40: test_check("lhs")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault