Running ‘testthat.R’ [63s/64s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(exPrior)
  Loading required package: nimble
  nimble version 0.10.0 is loaded.
  For more information on NIMBLE and a User Manual,
  please visit http://R-nimble.org.
  
  Attaching package: 'nimble'
  
  The following object is masked from 'package:stats':
  
      simulate
  
  > 
  > test_check("exPrior")
  ── ERROR (test_genExPrior.R:6:3): calculations from genExPrior ─────────────────
  Error: Failed to create the shared library. Run 'printErrors()' to see the compilation errors.
  
  Backtrace:
      █
   1. ├─testthat::expect_equal(...)
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─exPrior::genExPrior(...)
   5.   └─nimble::compileNimble(siteModel)
   6.     └─project$compileModel(units[[i]], control = control, showCompilerOutput = showCompilerOutput)
   7.       └─cppProj$compileFile(compileList, showCompilerOutput)
   8.         └─nimble:::compileDynamicRegistrations(showCompilerOutput = showCompilerOutput)
   9.           └─nimble:::compileStaticCode(dllName, cppName, showCompilerOutput)
  
  ── ERROR (test_multi_type_data.R:9:3): calculations from genExPrior with multipl
  Error: Failed to create the shared library. Run 'printErrors()' to see the compilation errors.
  
  Backtrace:
      █
   1. ├─testthat::expect_equal(...)
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─exPrior::genExPrior(...)
   5.   └─nimble::compileNimble(siteModel)
   6.     └─project$compileModel(units[[i]], control = control, showCompilerOutput = showCompilerOutput)
   7.       └─cppProj$compileFile(compileList, showCompilerOutput)
   8.         └─nimble:::compileDynamicRegistrations(showCompilerOutput = showCompilerOutput)
   9.           └─nimble:::compileStaticCode(dllName, cppName, showCompilerOutput)
  
  ── ERROR (test_spatial_correlation.R:12:3): calculations from genExPrior using s
  Error: Failed to create the shared library. Run 'printErrors()' to see the compilation errors.
  
  Backtrace:
      █
   1. ├─testthat::expect_equal(...)
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─exPrior::genExPrior(...)
   5.   └─nimble::compileNimble(siteModel)
   6.     └─project$compileModel(units[[i]], control = control, showCompilerOutput = showCompilerOutput)
   7.       └─cppProj$compileFile(compileList, showCompilerOutput)
   8.         └─nimble:::compileDynamicRegistrations(showCompilerOutput = showCompilerOutput)
   9.           └─nimble:::compileStaticCode(dllName, cppName, showCompilerOutput)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test_genExPrior.R:6:3): calculations from genExPrior
  ERROR (test_multi_type_data.R:9:3): calculations from genExPrior with multiple data types
  ERROR (test_spatial_correlation.R:12:3): calculations from genExPrior using spatially-correlated data
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted