surveyReport not generating zip folder

71 views
Skip to first unread message

Jay White

unread,
Aug 24, 2025, 10:18:24 PMAug 24
to camtrapR
Hello, 

Since the most recent camtrapR update I have been unable to generate the zip folder from the survey report. Everything else works fine and the txt file it generates is complete without issue, just no zip file. 

Below is my script and the error message i receive which appears to be unrelated to the problem. Also attaching the txt file which is correctly put into the sinkpath folder.

Report <- surveyReport (recordTable = recordtable,
CTtable = camtraps,
camOp = camOP,
speciesCol = "Species",
stationCol = "Station",
cameraCol = "Camera",
setupCol = "First.taken.date",
retrievalCol = "Last.taken.date",
CTDateFormat = "%Y-%m-%d",
recordDateTimeCol = "DateTimeOriginal",
recordDateTimeFormat = "%Y-%m-%d %H:%M:%S",
Xcol = "X",
Ycol = "Y",
sinkpath = getwd(),
makezip = TRUE
)

saved output to file G:/Bolikhamxay/NCNP/CT/survey_report_2025-08-22.txt Error in (function (output, recordTable, CTtable, speciesCol, stationCol, : unused argument (cameraCol = "Camera")

So grateful if you can help me resolve this problem.

survey_report_2025-08-22.txt

Jürgen Niedballa

unread,
Aug 28, 2025, 10:52:45 PMAug 28
to Jay White, camtrapR
Hello, 
can you confirm this happens with the latest dev version from Github? Please install via
# install.packages("remotes")   # run if not installed
# install.packages("R.rsp")     # run if not installed

remotes::install_github("jniedballa/camtrapR", ref = "dev", build_vignettes = TRUE)
If the problem persists please share the output of 
sessionInfo()

Thank you,


--
You received this message because you are subscribed to the Google Groups "camtrapR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camtrapr+u...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/camtrapr/c3b75d91-adde-478a-a420-2e186c2b8cf6n%40googlegroups.com.

Jay White

unread,
Sep 18, 2025, 1:57:07 PMSep 18
to camtrapR
Thank you for your response and sorry for my slow reply.

I have downloaded the development version of camtrapR from the source you provided and the problem remains unchanged, only the .txt file is generated. See session info below.

R version 4.5.0 (2025-04-11 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)

Matrix products: internal
  LAPACK version 3.12.1

locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                           LC_TIME=English_United States.utf8    

time zone: Asia/Bangkok
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base    

other attached packages:
 [1] R.rsp_0.46.0      remotes_2.5.0     writexl_1.5.4     terra_1.8-60      readxl_1.4.5      data.table_1.17.8 zip_2.3.3        
 [8] overlap_0.3.9     suntools_1.0.1    unmarked_1.5.0    Rcpp_1.1.0        lattice_0.22-7    reshape_0.8.10    xlsx_0.6.5      
[15] rJava_1.0-11      sp_2.2-0          camtrapR_2.5.3  

loaded via a namespace (and not attached):
 [1] tidyselect_1.2.1      dplyr_1.1.4           farver_2.1.2          R.utils_2.13.0        S7_0.2.0              fastmap_1.2.0        
 [7] leaflet_2.2.3         promises_1.3.3        digest_0.6.37         timechange_0.3.0      mime_0.13             lifecycle_1.0.4      
[13] sf_1.0-21             magrittr_2.0.4        compiler_4.5.0        rlang_1.1.6           tools_4.5.0           htmlwidgets_1.6.4    
[19] RcppNumerical_0.6-0   classInt_0.4-11       curl_6.2.2            plyr_1.8.9            RColorBrewer_1.1-3    abind_1.4-8          
[25] KernSmooth_2.23-26    R.cache_0.17.0        R.oo_1.27.1           grid_4.5.0            xtable_1.8-4          e1071_1.7-16        
[31] ggplot2_4.0.0         scales_1.4.0          MASS_7.3-65           cli_3.6.5             mvtnorm_1.3-3         generics_0.1.4      
[37] RcppParallel_5.1.11-1 rstudioapi_0.17.1     DBI_1.2.3             proxy_0.4-27          secr_5.2.4            stringr_1.5.2        
[43] splines_4.5.0         parallel_4.5.0        cellranger_1.1.0      vctrs_0.6.5           Matrix_1.7-3          crosstalk_1.2.2      
[49] units_0.8-7           shinyBS_0.61.1        glue_1.8.0            codetools_0.2-20      DT_0.34.0             lubridate_1.9.4      
[55] stringi_1.8.7         gtable_0.3.6          later_1.4.4           raster_3.6-32         shinydashboard_0.7.3  tibble_3.3.0        
[61] pillar_1.11.0         xlsxjars_0.6.1        htmltools_0.5.8.1     R6_2.6.1              shiny_1.11.1          R.methodsS3_1.8.2    
[67] httpuv_1.6.16         class_7.3-23          nlme_3.1-168          mgcv_1.9-1            pkgconfig_2.0.3      

Jay White

unread,
Oct 11, 2025, 11:28:44 PM (7 days ago) Oct 11
to camtrapR
Hello, sorry, I am still hoping to resolve this issue but am not any closer than before. 

Any advice is very much appreciated! 

Alexandre Courtiol

unread,
Oct 12, 2025, 10:47:26 AM (7 days ago) Oct 12
to Jay White, camtrapR
Hi Jay,
Your Rsession Info clearly shows that you are using camtrapR version 2.5.3 and not with the version 3.0 that is on GitHub.
Could you please retry with version 3.0?



--
Alexandre Courtiol, www.datazoogang.de

White, Jay

unread,
Oct 12, 2025, 7:18:02 PM (7 days ago) Oct 12
to Alexandre Courtiol, camtrapR
Thank you Alexandre,

I updated to version 3.0 and unfortunately the problem persists, only a .txt file generated.

> sessionInfo() R version 4.5.0 (2025-04-11 ucrt) Platform: x86_64-w64-mingw32/x64 Running under: Windows 11 x64 (build 26100) Matrix products: internal  LAPACK version 3.12.1 locale: [1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8 [4] LC_NUMERIC=C                           LC_TIME=English_United States.utf8     time zone: Asia/Bangkok tzcode source: internal attached base packages: [1] stats     graphics  grDevices utils     datasets  methods   base     other attached packages: [1] R.rsp_0.46.0      remotes_2.5.0     writexl_1.5.4     terra_1.8-60      readxl_1.4.5      data.table_1.17.8 zip_2.3.3         [8] overlap_0.3.9     suntools_1.0.1    unmarked_1.5.0    Rcpp_1.1.0        lattice_0.22-7    reshape_0.8.10    xlsx_0.6.5       [15] rJava_1.0-11      sp_2.2-0          camtrapR_3.0.0   loaded via a namespace (and not attached): [1] tidyselect_1.2.1      dplyr_1.1.4           farver_2.1.2          R.utils_2.13.0        S7_0.2.0              fastmap_1.2.0         [7] leaflet_2.2.3         promises_1.3.3        digest_0.6.37         timechange_0.3.0      mime_0.13             lifecycle_1.0.4       [13] sf_1.0-21             magrittr_2.0.4        compiler_4.5.0        rlang_1.1.6           tools_4.5.0           htmlwidgets_1.6.4     [19] RcppNumerical_0.6-0   classInt_0.4-11       plyr_1.8.9            RColorBrewer_1.1-3    abind_1.4-8           KernSmooth_2.23-26   [25] R.cache_0.17.0        R.oo_1.27.1           grid_4.5.0            xtable_1.8-4          e1071_1.7-16          ggplot2_4.0.0         [31] scales_1.4.0          MASS_7.3-65           cli_3.6.5             mvtnorm_1.3-3         generics_0.1.4        RcppParallel_5.1.11-1 [37] rstudioapi_0.17.1     DBI_1.2.3             proxy_0.4-27          secr_5.2.4            stringr_1.5.2         splines_4.5.0         [43] parallel_4.5.0        cellranger_1.1.0      vctrs_0.6.5           Matrix_1.7-3          crosstalk_1.2.2       units_0.8-7           [49] shinyBS_0.61.1        glue_1.8.0            codetools_0.2-20      DT_0.34.0             lubridate_1.9.4       stringi_1.8.7         [55] gtable_0.3.6          later_1.4.4           raster_3.6-32         shinydashboard_0.7.3  tibble_3.3.0          pillar_1.11.0         [61] xlsxjars_0.6.1        htmltools_0.5.8.1     R6_2.6.1              shiny_1.11.1          R.methodsS3_1.8.2     httpuv_1.6.16         [67] class_7.3-23          nlme_3.1-168          mgcv_1.9-1            pkgconfig_2.0.3      
>


   

Jay White
Technical Adviser, Biodiversity and Data
Wildlife Conservation Society, Lao PDR
Tel/Whatsapp: +856 20 91502469
Skype: jay.white1988





From: Alexandre Courtiol <alexandre...@gmail.com>
Sent: Sunday, October 12, 2025 9:47 PM
To: White, Jay <jayw...@wcs.org>
Cc: camtrapR <camt...@googlegroups.com>
Subject: Re: [camtrapR] surveyReport not generating zip folder
 
EXTERNAL EMAIL - Please Use Caution

Hi Jay,
To unsubscribe from this group and stop receiving emails from it, send an email to http://camtrapr+u...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "camtrapR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camtrapr+u...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/camtrapr/dd957177-c7f4-443a-9a99-5a14bb6fd5e9n%40googlegroups.com.


--
Alexandre Courtiol, www.datazoogang.de

Juergen Niedballa

unread,
Oct 13, 2025, 3:30:37 AM (6 days ago) Oct 13
to camt...@googlegroups.com

Hello, 

It is indeed a bug as pointed out by Alexandre (thank you for tracking it down). 

It should be fixed in the development version on github. 

Please give it a try via:


remotes::install_github("jniedballa/camtrapR", ref = "dev", build_vignettes = TRUE)


and the code the function writes should adapt to whether your data have a camera column or not.

Please let us know if that fixes the issue for you. 

Thank you,

Jürgen

Reply all
Reply to author
Forward
0 new messages