View source: R/snapshot_to_reconstruction_context.R
| snapshot_to_reconstruction_context | R Documentation |
Reconstructs a contextual observational corpus from one or more filesystem snapshot fragments.
The function:
merges observational filesystem snapshots;
filters observations to selected contextual roots;
enriches observations with contextual identifiers;
derives lightweight structural grouping heuristics;
creates a contextual Record Set projection.
The workflow is optimized for:
forensic reconstruction;
filesystem archaeology;
exploratory analytical workflows;
development environment reconstruction;
operational reporting.
Unlike snapshot_to_recordset_df(), this function intentionally
prioritizes analytical reconstruction over preservation-oriented
semantic assertions.
snapshot_to_reconstruction_context(
snapshot_files,
roots,
exclude_patterns = "\\.Rcheck"
)
snapshot_files |
Character vector of |
roots |
Character vector of contextual root paths used for observational selection. |
exclude_patterns |
Character vector of exclusion patterns
passed to |
Snapshot fragments are merged observationally.
Duplicate filesystem observations are intentionally preserved because the same resource may legitimately appear across:
multiple machines;
multiple storage contexts;
repeated scans;
synchronised working environments.
The resulting object remains observational and analytical.
Structural grouping heuristics are lightweight filesystem-derived operational projections and do not imply authoritative archival Record Set construction.
The function serves as the foundational reconstruction layer for:
analytical enrichment workflows;
reconstruction reporting;
semantic preservation wrappers such as
snapshot_to_recordset_df().
A contextual observational reconstruction table enriched with:
contextual observational identifiers;
storage-aware path identifiers;
structural grouping heuristics;
lightweight contextual Record Set projections.
Core observational variables typically include:
storage_id;
person_id;
full_path;
rel_path;
filename;
extension;
mtime;
scan_time.
Contextual enrichment variables may include:
inst_id;
storage_path_id;
observation_id;
structural_group;
component;
record_set_identifier;
resource_id;
locator_path.
snapshot_to_recordset_df(),
subset_snapshot(),
add_snapshot_context(),
add_structural_groups().
data("fscontextdemo_snapshot_01")
tmp <- tempfile(fileext = ".rds")
saveRDS(fscontextdemo_snapshot_01, tmp)
snapshot_to_reconstruction_context(
snapshot_files = tmp,
roots = "D:/_packages/fscontextdemo/R"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.