Flatten selected genera into an autosave-friendly data.frame
Source:R/helpers_autosave.R
build_autosave_df.RdThis mirrors the logic used inside autosave_module_server(), but works on
a plain snapshot of selected_genera instead of live reactives. It is
designed for unit testing and for use inside the server module.
Arguments
- selected_snapshot
A named list. Each element name is a section_id (e.g. "section_1"), and each element is a list with a
dataelement. Thedataelement should itself be a list of rows, where each row is a list containing at least: taxon, dipnet1, dipnet2, tsn, parentTsn.- group_defs
A data.frame with columns:
section_id
group_id
group_name