Running ‘testthat.R’ [75s/97s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(exPrior)
  Loading required package: nimble
  nimble version 0.9.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")
  ── 1. Error: calculations from genExPrior (@test_genExPrior.R#6)  ──────────────
  Failed to create the shared library.
  Backtrace:
   1. testthat::expect_equal(...)
   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)
  
  ── 2. Error: calculations from genExPrior with multiple data types (@test_multi_
  Failed to create the shared library.
  Backtrace:
   1. testthat::expect_equal(...)
   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)
  
  ── 3. Error: calculations from genExPrior using spatially-correlated data (@test
  Failed to create the shared library.
  Backtrace:
   1. testthat::expect_equal(...)
   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  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: calculations from genExPrior (@test_genExPrior.R#6) 
  2. Error: calculations from genExPrior with multiple data types (@test_multi_type_data.R#9) 
  3. Error: calculations from genExPrior using spatially-correlated data (@test_spatial_correlation.R#12) 
  
  Error: testthat unit tests failed
  Execution halted