R/record_study_survey_event.R
record_study_survey_event.RdCreates a local event identity without changing hierarchy, areas, existing events, notes or evidence links. This is analyst-supplied inventory, not independent acquisition verification, asset linking or FGDB acceptance.
record_study_survey_event(
dsn,
output_file,
reach_id,
acquired_date,
source_dataset,
evidence_note,
report_file = NULL,
report_purpose = "definition"
)Existing context GeoPackage with the parent Reach.
New .gpkg beside dsn; never overwrite existing context.
Exact existing Reach UUID; no parentage is inferred.
Known date as YYYY, YYYY-MM or YYYY-MM-DD. Unknown parts remain missing integers. Invalid dates and periods entirely in the future are refused; planned/undated work belongs in scope/reconstruction notes.
Nonempty source/delivery reference stored as text. Not opened, copied, verified or pinned as an asset link.
Nonempty basis for acquisition/date interpretation, stored in availability_notes, not duplicated in Study Area notes.
Optional new .html destination in an existing directory.
Report view: definition (default), terrain or staging.
List of context and report paths. Exact repeats of Reach, date precision/value and trimmed source reference are refused. Alternate labels or precision still need analyst duplicate review; this is not reconciliation. Existing optional columns retain values; absent columns gain typed missing values. Rendering failure may leave the context; keep it and retry read-only reporting. No acquisition or terrain availability is inferred.