This function gets all supporting records (and onwards dependencies) for a set of records. Supporting records are note, multimedia, source, and repository records, i.e. those providing supporting evidence and comments.

get_supporting_records(
  gedcom,
  xrefs,
  inc_note = TRUE,
  inc_media = TRUE,
  inc_sour = TRUE,
  inc_repo = TRUE
)

Arguments

gedcom

A tidyged object.

xrefs

The xrefs of records to get supporting records for.

inc_note

Whether to include Note records.

inc_media

Whether to include Multimedia records.

inc_sour

Whether to include Source records.

inc_repo

Whether to include Repository records.

Value

A character vector of supporting record xrefs.

Examples

get_supporting_records(sample555, "@I1@")
#> [1] "@S1@" "@R1@"
get_supporting_records(sample555, "@F1@")
#> character(0)