--- title: "Note records" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Note records} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ``` 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. ```{r} library(tidyged) gedcom() |> add_note("This is a random note used for demonstration purposes\nThis is a new line.") |> dplyr::filter(record == "@N1@") ``` As with other records, various types of user-defined references can be defined (`user_reference_numbers`).

Next article: Date types >