Package suggested but not available for checking: ‘magclass’
Running ‘testthat.R’ [154s/169s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GDPuc)
  > 
  > test_check("GDPuc")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 5267 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-check_user_input.R:16:3'): gdp argument ────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'magclass'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-check_user_input.R:16:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-convertGDP.R:63:3'): convertGDP magpie object ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'magclass'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-convertGDP.R:63:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 5267 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘handle_NAs.Rmd’ using rmarkdown
--- finished re-building ‘handle_NAs.Rmd’

--- re-building ‘magpie.Rmd’ using rmarkdown

Quitting from lines 20-36 [unnamed-chunk-2] (magpie.Rmd)
Error: processing vignette ‘magpie.Rmd’ failed with diagnostics:
there is no package called 'magclass'
--- failed re-building ‘magpie.Rmd’

--- re-building ‘source.Rmd’ using rmarkdown
--- finished re-building ‘source.Rmd’

--- re-building ‘verbose.Rmd’ using rmarkdown
--- finished re-building ‘verbose.Rmd’

--- re-building ‘warn.Rmd’ using rmarkdown
--- finished re-building ‘warn.Rmd’

--- re-building ‘with_regions.Rmd’ using rmarkdown
--- finished re-building ‘with_regions.Rmd’

SUMMARY: processing the following file failed:
  ‘magpie.Rmd’

Error: Vignette re-building failed.
Execution halted