Running ‘testthat.R’ [22s/37s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(raptr)
  Loading required package: sp
  Loading required package: raster
  The gorubi software is not installed
  Follow these instructions to download the Gurobi software suite:
     http://bit.ly/1ksXUaQ
  
  The Gurobi R package requires a Gurobi license to work:
    visit this web-page for an overview: http://bit.ly/1OHEQCm
    academics can obtain a license at no cost here: http://bit.ly/1iYg3LX
  
  Follow these instructions to install the "gurobi" R package:
     http://bit.ly/1HLCRoE
  
  
  Type the code "is.GurobiInstalled()" to check if Gurobi is
  succesfully installed after following these instructions.
  > test_check("raptr")
  
   *** caught segfault ***
  address (nil), cause 'unknown'
  
  Traceback:
   1: RandomFieldsUtils::RFoptions()
   2: internal.rfoptions(xyz_notation = length(y) != 0, expected_number_simu = n,     ..., RELAX = !missing(model) && is(model, "formula"))
   3: RandomFields::RFsimulate(model = model, methods::as(x, "SpatialPoints")@coords,     n = d, spConform = FALSE, ...)
   4: sim.space.RasterLayer(blank.raster(x, res), d = d, model = model,     ...)
   5: sim.space.SpatialPolygons(pus, res = 1, d = 5)
   6: sim.space(pus, res = 1, d = 5)
   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(), reporter = reporter)
  18: test_that("simulate space functions", {    pus <- sim.pus(n = 225L)    spaces <- sim.space(pus, res = 1, d = 5)    expect_true(inherits(spaces, "RasterStack"))    expect_equal(nlayers(spaces), 5)    expect_equal(xmin(spaces), -7.5)    expect_equal(ymin(spaces), -7.5)    expect_equal(xmax(spaces), 7.5)    expect_equal(ymax(spaces), 7.5)    expect_equal(sum(is.na(spaces[[1]][])), 0)})
  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, child_env(env), wrap = wrap)
  31: FUN(X[[i]], ...)
  32: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  33: doTryCatch(return(expr), name, parentenv, handler)
  34: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  35: tryCatchList(expr, classes, parentenv, handlers)
  36: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  37: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  38: test_files(test_dir = test_dir, test_package = test_package,     test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package)
  39: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env,     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package, parallel = parallel)
  40: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  41: test_check("raptr")
  An irrecoverable exception occurred. R is aborting now ...