Note records allow you to make notes in your file and reference them in multiple places. This is achieved using the add_note() record. Multi-line notes can be achieved using backslash-n.

library(tidyged)

gedcom() |> 
  add_note("This is a random note used for demonstration purposes\nThis is a new line.") |> 
  dplyr::filter(record == "@N1@")
#> Added Note: @N1@
#> # A tibble: 3 × 4
#>   level record tag   value                                                      
#>   <dbl> <chr>  <chr> <chr>                                                      
#> 1     0 @N1@   NOTE  "This is a random note used for demonstration purposes\nTh…
#> 2     1 @N1@   CHAN  ""                                                         
#> 3     2 @N1@   DATE  "22 JUN 2022"

As with other records, various types of user-defined references can be defined (user_reference_numbers).

Next article: Date types >