Package: R2camtrapdp 2.0.0

Kana Terayama

R2camtrapdp: Convert Camera Trap Dataset to 'Camtrap DP'

Builds Camera Trap Data Packages ('Camtrap DP') from arbitrary spreadsheets in a schema-driven way: table structure, types, constraints and relations are read from the 'Frictionless' table schemas of the requested 'Camtrap DP' version, so any version and custom columns are handled automatically. Provides validation against the schemas and an optional bridge to the 'frictionless' 'Python' framework. The 'Camtrap DP' standard is described in Bubnicki et al. (2023) <doi:10.1002/rse2.374>.

Authors:Kana Terayama [aut, cre], Keita Fukasawa [aut]

R2camtrapdp_2.0.0.tar.gz
R2camtrapdp_2.0.0.tar.gz(r-4.7-any)R2camtrapdp_2.0.0.tar.gz(r-4.6-any)
R2camtrapdp_2.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
R2camtrapdp/json (API)

# Install 'R2camtrapdp' in R:
install.packages('R2camtrapdp', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kfukasawa37/r2camtrapdp/issues

Datasets:
  • Adep - Example acoustic deployment field-notebook
  • Aobs - Example acoustic observation field-notebook
  • datapackageAdata - Example Camtrap DP data package
  • datapackageIdata - Example Camtrap DP data package
  • datapackageVdata - Example Camtrap DP data package
  • Idep - Example deployment data
  • Iobs - Example observation data
  • Vdep - Example single camera-trap deployment data
  • Vobs - Example single camera-trap observation data

On CRAN:

Conda:

3.48 score 9 scripts 20 exports 49 dependencies

Last updated from:63fac480d9. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK173
source / vignettesOK237
linux-release-x86_64OK166
wasm-releaseOK143

Exports:%>%create_deploymentscreate_mediacreate_observationsctdp_apply_mappingctdp_bind_issuesctdp_build_tablectdp_check_schemactdp_is_validctdp_issuesctdp_merge_datetimectdp_no_issuesctdp_parse_frictionlessctdp_schema_referencesctdp_semantic_only_fieldsctdp_summarize_validationctdp_validate_frictionlessMetadataProfileR6_CamtrapDPTableSchema

Dependencies:askpassbitbit64blobcachemclicliprcontentidcpp11crayoncurlDBIdbplyrdplyrduckdbfastmapfsgenericsgluehmshttrjsonlitelifecyclelubridatemagrittrmemoisemimeopensslpillarpkgconfigprettyunitsprogresspurrrR6readrrlangstringistringrsystaxadbtibbletidyrtidyselecttimechangetzdbutf8vctrsvroomwithr

R2camtrapdp: acoustic (audio) data
Overview | Data | 1. Point the package at the bioacoustics flavor | 2. Deployments (from the deployment notebook) | 3. Media (derived from the observation notebook's file names) | 4. Observations (from the observation notebook) | 5. Metadata, relations, write, validate | 6. Inspecting the acoustic requirements

Last update: 2026-06-29
Started: 2026-06-29

R2camtrapdp: 音声(音響)データ(日本語)
概要 | データ | 1. bioacoustics フレーバーを指定 | 2. deployments(設置野帳から) | 3. media(観察野帳のファイル名から生成) | 4. observations(観察野帳から) | 5. メタデータ・リレーション・書き出し・検証 | 6. 音響スキーマの要件確認

Last update: 2026-06-29
Started: 2026-06-29

R2camtrapdp: スキーマ駆動ワークフロー(日本語)
概要 | データ | 1. バージョンの選択とスキーマの確認(任意) | スキーマ内の外部(URL)参照 | 2. 3 つの中核テーブルの作成 | デプロイメントの作成 | メディアの作成 | observationの作成 | 3. データパッケージの組み立て | R6 オブジェクトの作成(バージョン指定) | テーブルの登録(スキーマ検証付き) | テーブル間リレーションの検査 | 4. メタデータ | どのメタデータが必須かを profile で確認する | 必須メタデータ | 貢献者(Contributors) | プロジェクト(Project) | 空間・時間(Spatial and temporal) | 分類(Taxonomic) | 作成日時(Created) | 任意メタデータ | ライセンス(Licenses) | 関連識別子(Related identifiers) | プロパティ・ソース・参考文献 | カスタムリソース | 5. データパッケージの出力 | 6. Frictionless による検証 | 適合の事前チェック(Python を呼ぶ前に) | Frictionless の実行 | 7. 任意のスプレッドシートを直接変換する | 8. 別のスキーマフレーバー(例: bioacoustics) | カメラトラップの列を音響フレーバーへ対応づける

Last update: 2026-06-29
Started: 2026-06-29

R2camtrapdp: schema-driven workflow
Overview | Data | 1. Choose a version and inspect its schema (optional) | External (URL) references in a schema | 2. Build the three core tables | Create deployments | Create media | Create observations | 3. Assemble the data package | Create the R6 object (with a version) | Import the tables (now schema-validated) | Check relations between tables | 4. Metadata | Check which metadata the profile requires | Required metadata | Contributors | Project | Spatial and temporal | Taxonomic | Created | Optional metadata | Licenses | Related identifiers | Properties, sources and references | Custom resources | 5. Output the data package | 6. Validate the written package with Frictionless | Conformance pre-checks (before calling Python) | Run Frictionless | 7. Converting an arbitrary spreadsheet directly | 8. Other schema flavors (e.g. bioacoustics) | Mapping camera-trap columns to the acoustic flavor

Last update: 2026-06-29
Started: 2026-06-29

Vignette_R2camtrapdp
Data | Create deployment | Create media | Create observation | Create datapackages

Last update: 2026-06-29
Started: 2026-06-29

Vignette_R2camtrapdp_SingleCamera
Data | Create deployment | Create media | Create observation | Create datapackages

Last update: 2026-06-29
Started: 2026-06-29

Readme and manuals

Help Manual

Help pageTopics
Example acoustic deployment field-notebookAdep
Example acoustic observation field-notebookAobs
Create deploymentscreate_deployments
Create mediacreate_media
Create observationscreate_observations
Apply a column mapping to a data framectdp_apply_mapping
Row-bind several issue tablesctdp_bind_issues
Build and validate a table against a Table Schemactdp_build_table
Check that a Table Schema is well-formed per the Frictionless specctdp_check_schema
Did a validation pass (no errors)?ctdp_is_valid
Create an issue tablectdp_issues
Combine a date column and a time column into a datetime columnctdp_merge_datetime
An empty issue tablectdp_no_issues
Parse a Frictionless validation report into an issue tablectdp_parse_frictionless
List the external (URL) references declared by a Table Schemactdp_schema_references
Fields whose meaning is defined only by reference (not machine-validated)ctdp_semantic_only_fields
Summarise an issue table to the consolectdp_summarize_validation
Validate an existing Camtrap DP directory with Python Frictionlessctdp_validate_frictionless
Build a schema-conformant table from arbitrary inputctdp-build-table
Frictionless conformance pre-checks (R-side)ctdp-conformance
Python Frictionless validation (shared internals + validate-only API)ctdp-frictionless
Column mapping helpersctdp-mapping
Discover external references inside a schemactdp-references
Validation issue representation and reportingctdp-validation-report
Example Camtrap DP data package (acoustic)datapackageAdata
Example Camtrap DP data package (multiple camera traps)datapackageIdata
Example Camtrap DP data package (single camera trap)datapackageVdata
Example deployment data (multiple camera deployments with image records)Idep
Example observation data (image records)Iobs
R6 class representing a Camtrap DP package profile (metadata schema)MetadataProfile
R6 class representing Camtrap DP (schema-driven)R6_CamtrapDP
R6 class representing a Frictionless Table SchemaTableSchema
Example single camera-trap deployment data (video)Vdep
Example single camera-trap observation data (video)Vobs