Running ‘test-all.R’ [266s/348s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > # test only if exiftool is available
  > if(Sys.which("exiftool") != ""){
  +   test_check("camtrapR")
  + }
  Loading required package: camtrapR
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 105
     Unobserved stochastic nodes: 33
     Total graph size: 386
  
  Initializing model
  
  NOTE: Stopping adaptation
  
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 105
     Unobserved stochastic nodes: 32
     Total graph size: 465
  
  Initializing model
  
  NOTE: Stopping adaptation
  
  
  ===== Monitors =====
  thin = 1: alpha.obs.fixed.cont.effort, alpha0, beta.fixed.categ.some_factor, beta.fixed.cont.utm_y, beta0
  ===== Samplers =====
  RW sampler (5)
    - beta0
    - alpha0
    - alpha.obs.fixed.cont.effort
    - beta.fixed.cont.utm_y
    - beta.fixed.categ.some_factor[]  (1 element)
  |-------------|-------------|-------------|-------------|
  |-------------------------------------------------------|
  |-------------|-------------|-------------|-------------|
  |-------------------------------------------------------|
  |-------------|-------------|-------------|-------------|
  |-------------------------------------------------------|
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 105
     Unobserved stochastic nodes: 22
     Total graph size: 331
  
  Initializing model
  
  NOTE: Stopping adaptation
  
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 105
     Unobserved stochastic nodes: 57
     Total graph size: 513
  
  Initializing model
  
  NOTE: Stopping adaptation
  
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 105
     Unobserved stochastic nodes: 30
     Total graph size: 313
  
  Initializing model
  
  NOTE: Stopping adaptation
  
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 105
     Unobserved stochastic nodes: 31
     Total graph size: 313
  
  Initializing model
  
  NOTE: Stopping adaptation
  
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 105
     Unobserved stochastic nodes: 43
     Total graph size: 353
  
  Initializing model
  
  NOTE: Stopping adaptation
  
  
  Writing layer `test_detections' to data source `.' using driver `ESRI Shapefile'
  Writing 3 features with 7 fields and geometry type Point.
    adding: deployments.csv (deflated 54%)
    adding: images.csv (deflated 48%)
  Saving _problems/test-speciesAccum-77.R
  
  -------------------------------------------------------
  [1] "Total number of stations:  3"
  
  -------------------------------------------------------
  [1] "Number of operational stations:  3"
  
  -------------------------------------------------------
  [1] "Trap nights (number of active 24 hour cycles completed by independent cameras):  128"
  
  -------------------------------------------------------
  [1] "Calendar days with cameras set up (operational or not):  131"
  
  -------------------------------------------------------
  [1] "Calendar days with cameras set up and active:  131"
  
  -------------------------------------------------------
  [1] "Calendar days with cameras set up but inactive:  0"
  
  -------------------------------------------------------
  [1] "total trapping period:  2009-04-02 - 2009-05-17"
  
  -------------------------------------------------------
  [1] "Total number of stations:  3"
  
  -------------------------------------------------------
  [1] "Number of operational stations:  3"
  
  -------------------------------------------------------
  [1] "Trap nights (number of active 24 hour cycles completed by independent cameras):  128"
  
  -------------------------------------------------------
  [1] "Calendar days with cameras set up (operational or not):  131"
  
  -------------------------------------------------------
  [1] "Calendar days with cameras set up and active:  131"
  
  -------------------------------------------------------
  [1] "Calendar days with cameras set up but inactive:  0"
  
  -------------------------------------------------------
  [1] "total trapping period:  2009-04-02 - 2009-05-17"
  
  -------------------------------------------------------
  [1] "Total number of stations:  3"
  
  -------------------------------------------------------
  [1] "Number of operational stations:  3"
  
  -------------------------------------------------------
  [1] "Trap nights (number of active 24 hour cycles completed by independent cameras):  122.5"
  
  -------------------------------------------------------
  [1] "Calendar days with cameras set up (operational or not):  131"
  
  -------------------------------------------------------
  [1] "Calendar days with cameras set up and active:  125"
  
  -------------------------------------------------------
  [1] "Calendar days with cameras set up but inactive:  6"
  
  -------------------------------------------------------
  [1] "total trapping period:  2009-04-02 - 2009-05-17"
    adding: surveyReport_2026-04-12/CTtable.csv (deflated 47%)
    adding: surveyReport_2026-04-12/activity/activity_density_EGY_2026-04-12.png (deflated 6%)
    adding: surveyReport_2026-04-12/activity/activity_density_MNE_2026-04-12.png (deflated 11%)
    adding: surveyReport_2026-04-12/activity/activity_density_PBE_2026-04-12.png (deflated 7%)
    adding: surveyReport_2026-04-12/activity/activity_density_TRA_2026-04-12.png (deflated 6%)
    adding: surveyReport_2026-04-12/activity/activity_density_VTA_2026-04-12.png (deflated 7%)
    adding: surveyReport_2026-04-12/detectionMaps/Presence_EGY_2026-04-12.png (deflated 21%)
    adding: surveyReport_2026-04-12/detectionMaps/Presence_MNE_2026-04-12.png (deflated 20%)
    adding: surveyReport_2026-04-12/detectionMaps/Presence_PBE_2026-04-12.png (deflated 19%)
    adding: surveyReport_2026-04-12/detectionMaps/Presence_TRA_2026-04-12.png (deflated 20%)
    adding: surveyReport_2026-04-12/detectionMaps/Presence_VTA_2026-04-12.png (deflated 20%)
    adding: surveyReport_2026-04-12/detectionMaps/n_Species_2026-04-12.png (deflated 18%)
    adding: surveyReport_2026-04-12/readme.txt (deflated 67%)
    adding: surveyReport_2026-04-12/recordTable.csv (deflated 83%)
    adding: surveyReport_2026-04-12/scripts/camtrapR_scripts.R (deflated 70%)
    adding: surveyReport_2026-04-12/surveyReport/events_by_species.csv (deflated 30%)
    adding: surveyReport_2026-04-12/surveyReport/events_by_station.csv (deflated 54%)
    adding: surveyReport_2026-04-12/surveyReport/events_by_station2.csv (deflated 65%)
    adding: surveyReport_2026-04-12/surveyReport/species_by_station.csv (deflated 30%)
    adding: surveyReport_2026-04-12/surveyReport/survey_dates.csv (deflated 55%)
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 519 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • empty test (1): 'test-speciesAccum.R:36:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-speciesAccum.R:68:5'): it produces a valid iNEXT object with x_unit = 'survey_day' ──
  Error in `yi[i]:(nT - 1)`: NA/NaN argument
  Backtrace:
       ▆
    1. └─camtrapR::speciesAccum(...) at test-speciesAccum.R:68:5
    2.   └─iNEXT::iNEXT(...)
    3.     └─iNEXT:::AsyD(...)
    4.       └─base::lapply(...)
    5.         └─iNEXT (local) FUN(X[[i]], ...)
    6.           ├─base::apply(...)
    7.           └─base::apply(...)
    8.             └─iNEXT (local) FUN(newX[, i], ...)
    9.               └─iNEXT:::Diversity_profile.inc(yb, q)
   10.                 └─base::sapply(c(1:length(yi)), function(i) delta(i))
   11.                   └─base::lapply(X = X, FUN = FUN, ...)
   12.                     └─iNEXT (local) FUN(X[[i]], ...)
   13.                       └─iNEXT (local) delta(i)
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 519 ]
  Error:
  ! Test failures.
  Execution halted