Running ‘testthat.R’ [51s/190s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(MFKnockoffs)
  > 
  > # Set a random seed for reproducibility when running R CMD CHECK.
  > # Note that this file is not run by devtools::test, so the tests will be truly
  > # random when run from RStudio.
  > set.seed(1234)
  > 
  > # Run the test suite.
  > test_check('MFKnockoffs')
  
   *** caught segfault ***
  address 0, cause 'memory not mapped'
  
  Traceback:
   1: .Call("scsr", data, cone, control, PACKAGE = "scs")
   2: scs::scs(A, b, obj, cone, control)
   3: MFKnockoffs.knocks.solve_sdp(G)
   4: create_sdp(X, randomize)
   5: MFKnockoffs.create.fixed(x, y = y)
   6: knockoffs(X)
   7: MFKnockoffs.filter(MFKnockoffs:::rnorm_matrix(20, 15), rnorm(20),     knockoffs = MFKnockoffs.create.fixed)
   8: withCallingHandlers(code, warning = function(condition) {    out$push(condition)    invokeRestart("muffleWarning")})
   9: capture_warnings(object)
  10: expect_warning(MFKnockoffs.filter(MFKnockoffs:::rnorm_matrix(20,     15), rnorm(20), knockoffs = MFKnockoffs.create.fixed), "dimensions")
  11: eval(code, test_env)
  12: eval(code, test_env)
  13: withCallingHandlers(eval(code, test_env), expectation = handle_expectation,     skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error)
  14: doTryCatch(return(expr), name, parentenv, handler)
  15: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  16: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  17: doTryCatch(return(expr), name, parentenv, handler)
  18: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  19: tryCatchList(expr, classes, parentenv, handlers)
  20: 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) {})
  21: test_code(desc, code, env = parent.frame())
  22: test_that("MFKnockoffs.filter verifies input dimensions", {    expect_error(MFKnockoffs.filter(MFKnockoffs:::rnorm_matrix(10,         10), rnorm(10), knockoffs = MFKnockoffs.create.fixed),         "dimensions")    expect_error(MFKnockoffs.filter(MFKnockoffs:::rnorm_matrix(20,         10), rnorm(19), knockoffs = MFKnockoffs.create.fixed))    expect_warning(MFKnockoffs.filter(MFKnockoffs:::rnorm_matrix(20,         15), rnorm(20), knockoffs = MFKnockoffs.create.fixed),         "dimensions")})
  23: eval(exprs, env)
  24: eval(exprs, env)
  25: source_file(path, new.env(parent = env), chdir = TRUE)
  26: force(code)
  27: 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()    })
  28: FUN(X[[i]], ...)
  29: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE)
  30: force(code)
  31: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE))
  32: test_files(paths, reporter = reporter, env = env, ...)
  33: test_dir(test_path, reporter = reporter, env = env, filter = filter,     ...)
  34: with_top_env(env, {    test_dir(test_path, reporter = reporter, env = env, filter = filter,         ...)})
  35: run_tests(package, test_path, filter, reporter, ...)
  36: test_check("MFKnockoffs")
  An irrecoverable exception occurred. R is aborting now ...