Running 'testthat.R' [2s/2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(gscounts)
  > 
  > test_check("gscounts")
  == Failed tests ================================================================
  -- Error (test_gs-bindingfut.R:10:1): (code run outside of `test_that()`) ------
  Error: there is no package called 'gsDesign'
  Backtrace:
      x
   1. \-base::loadNamespace(x) test_gs-bindingfut.R:10:0
   2.   \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     \-base:::withOneRestart(expr, restarts[[1L]])
   4.       \-base:::doWithOneRestart(return(expr), restart)
  -- Error (test_gs-efficacy.R:9:1): (code run outside of `test_that()`) ---------
  Error: there is no package called 'gsDesign'
  Backtrace:
      x
   1. \-base::loadNamespace(x) test_gs-efficacy.R:9:0
   2.   \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     \-base:::withOneRestart(expr, restarts[[1L]])
   4.       \-base:::doWithOneRestart(return(expr), restart)
  -- Error (test_gs-fixedfollowup.R:4:1): (code run outside of `test_that()`) ----
  Error: there is no package called 'gsDesign'
  Backtrace:
      x
   1. \-base::loadNamespace(x) test_gs-fixedfollowup.R:4:0
   2.   \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     \-base:::withOneRestart(expr, restarts[[1L]])
   4.       \-base:::doWithOneRestart(return(expr), restart)
  -- Error (test_gs-nonbindingfut.R:11:1): (code run outside of `test_that()`) ---
  Error: there is no package called 'gsDesign'
  Backtrace:
      x
   1. \-base::loadNamespace(x) test_gs-nonbindingfut.R:11:0
   2.   \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     \-base:::withOneRestart(expr, restarts[[1L]])
   4.       \-base:::doWithOneRestart(return(expr), restart)
  -- Error (test_spending.R:5:12): Pocock spending function matches gsdesign -----
  Error: there is no package called 'gsDesign'
  Backtrace:
      x
   1. +-testthat::expect_equal(...) test_spending.R:5:11
   2. | \-testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-base::loadNamespace(x)
   5.   \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     \-base:::withOneRestart(expr, restarts[[1L]])
   7.       \-base:::doWithOneRestart(return(expr), restart)
  -- Error (test_spending.R:10:12): OBF spending function matches gsdesign -------
  Error: there is no package called 'gsDesign'
  Backtrace:
      x
   1. +-testthat::expect_equal(...) test_spending.R:10:11
   2. | \-testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-base::loadNamespace(x)
   5.   \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     \-base:::withOneRestart(expr, restarts[[1L]])
   7.       \-base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 17 ]
  Error: Test failures
  Execution halted