This project converts a Wildlife Insights export into a generic Camtrap DP package. Dakatcha-specific filtering and independent-event creation then happen in memory inside the analysis scripts.
Project dependencies are declared in DESCRIPTION.
This workflow was tested with:
camtraptor1.0.0camtrapdp0.5.0.9000frictionless1.2.1
Install the project dependencies with pak from the project root:
install.packages("pak")
pak::local_install_dev_deps()This repository is organized as a research workflow and can also be built as a lightweight R package to install its dependencies and expose the functions under R/.
Core packages are listed under Imports, and optional packages used by some
scripts or reports are listed under Suggests.
Inputs are kept directly under data/ in one semantic level:
data/wildlife-insights/data/kobo/data/spatial/data/species/data/comparison/outputs/: all generated packages, tables, figures, reports, and media caches
Large raw inputs and reference documents are intentionally excluded from git by default. Recreate them locally under the same paths when running the full workflow.
Key locations:
- Wildlife Insights export:
data/wildlife-insights/2001317/ - species notes:
data/species/species_report_notes.csv - comparison data:
data/comparison/as_bd_trapping_rate.csv - spatial reference layers:
data/spatial/
Run the active pipeline in order:
source("scripts/01_convert_wi_to_camtrapdp.R")
source("scripts/03_qc_and_effort_summary.R")
source("scripts/04_species_summary.R")
source("scripts/05_species_accumulation.R")
source("scripts/06_compare_dakatcha_vs_as_bd.R")This produces:
- generic package:
outputs/camtrap-dp/wi/
The analysis scripts read that generic package and call prepare_dakatcha_analysis_pkg() in memory.
This in-memory preparation currently:
- filters to functioning cameras with more than 5 deployment days
- appends independent event observations using the 60-minute
lastRecordrule
It does not apply taxonomy corrections.
- The pinned
camtraptorcommit is required because the downstream scripts use theversion-1.0API. - The project uses the standard
camtrapdp::read_camtrapdp()andcamtrapdp::write_camtrapdp()functions. - Archived or non-core scripts are kept in
scripts/archive/. - Generated outputs, local IDE state, and bulky rendered artifacts are excluded from git via
.gitignore.