Internal helper function, based on `unheadr::regex_valign``
align_annotations(
annot_string,
regex_ai = paste0("(?!\\))(?!\\s)(?=\\#\\sCRAN\\sv|",
"\\#\\sBiocon|\\#\\snot\\sinstall|", "\\#\\s\\[|\\#\\sPosit R)"),
sep_str = ""
)
Character vector with annotated package calls.
Custom regular expression to match lines with package annotations.
Whitespace separator.
A character vector with vertically aligned package calls.