Running ‘testthat.R’ [200s/235s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # load packages
  > library(testthat)
  > library(prioritizr)
  Loading required package: raster
  Loading required package: sp
  Loading required package: proto
  > 
  > # load solver packages
  > require(gurobi)
  Loading required package: gurobi
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'gurobi'
  > require(lpsymphony)
  Loading required package: lpsymphony
  > require(Rsymphony)
  Loading required package: Rsymphony
  > 
  > # enable parallel testing
  > Sys.unsetenv("R_TESTS")
  > 
  > # run tests
  > test_check("prioritizr")
  list()
  attr(,"class")
  [1] "Waiver"
  ── 1. Error: proportion_parameter_array (@test_parameters.R#151)  ──────────────
  the "rhandsontable" R package must be installed to render this parameter.
  1: expect_is(x$render(), "shiny.tag.list") at testthat/test_parameters.R:151
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: x$render()
  5: res(x, ...)
  6: stop(paste0("the \"", pkg, "\" R package must be installed to render", " this parameter."))
  
  ── 2. Error: binary_parameter_array (@test_parameters.R#204)  ──────────────────
  the "rhandsontable" R package must be installed to render this parameter.
  1: expect_is(x$render(), "shiny.tag.list") at testthat/test_parameters.R:204
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: x$render()
  5: res(x, ...)
  6: stop(paste0("the \"", pkg, "\" R package must be installed to render", " this parameter."))
  
  ── 3. Error: numeric_parameter_array (@test_parameters.R#255)  ─────────────────
  the "rhandsontable" R package must be installed to render this parameter.
  1: expect_is(x$render(), "shiny.tag.list") at testthat/test_parameters.R:255
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: x$render()
  5: res(x, ...)
  6: stop(paste0("the \"", pkg, "\" R package must be installed to render", " this parameter."))
  
  ── 4. Error: numeric_matrix_parameter (@test_parameters.R#354)  ────────────────
  there is no package called 'rhandsontable'
  1: expect_is(x$render(), "shiny.tag.list") at testthat/test_parameters.R:354
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: x$render()
  5: res(x, ...)
  6: self$widget[[1]](self$id, self$value)
  7: utils::getFromNamespace("rHandsontableOutput", "rhandsontable")
  8: asNamespace(ns)
  9: getNamespace(ns)
  10: tryCatch(loadNamespace(name), error = function(e) stop(e))
  11: tryCatchList(expr, classes, parentenv, handlers)
  12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  13: value[[3L]](cond)
  
  ── 5. Error: binary_matrix_parameter (@test_parameters.R#378)  ─────────────────
  there is no package called 'rhandsontable'
  1: expect_is(x$render(), "shiny.tag.list") at testthat/test_parameters.R:378
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: x$render()
  5: res(x, ...)
  6: self$widget[[1]](self$id, self$value)
  7: utils::getFromNamespace("rHandsontableOutput", "rhandsontable")
  8: asNamespace(ns)
  9: getNamespace(ns)
  10: tryCatch(loadNamespace(name), error = function(e) stop(e))
  11: tryCatchList(expr, classes, parentenv, handlers)
  12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  13: value[[3L]](cond)
  
  ── 6. Error: parameters (@test_parameters.R#397)  ──────────────────────────────
  the "rhandsontable" R package must be installed to render this parameter.
  1: expect_is(x$render_all(), "shiny.tag") at testthat/test_parameters.R:397
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: x$render_all()
  5: res(x, ...)
  6: do.call(shiny::div, append(list(class = "Parameters"), lapply(self$ids(), function(x) self[[x]]$render())))
  7: append(list(class = "Parameters"), lapply(self$ids(), function(x) self[[x]]$render()))
  8: lapply(self$ids(), function(x) self[[x]]$render())
  9: FUN(X[[i]], ...)
  10: self[[x]]$render()
  11: res(x, ...)
  12: stop(paste0("the \"", pkg, "\" R package must be installed to render", " this parameter."))
  
  ..
  ..
  ..
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 11473 SKIPPED: 115 FAILED: 6
  1. Error: proportion_parameter_array (@test_parameters.R#151) 
  2. Error: binary_parameter_array (@test_parameters.R#204) 
  3. Error: numeric_parameter_array (@test_parameters.R#255) 
  4. Error: numeric_matrix_parameter (@test_parameters.R#354) 
  5. Error: binary_matrix_parameter (@test_parameters.R#378) 
  6. Error: parameters (@test_parameters.R#397) 
  
  Error: testthat unit tests failed
  Execution halted