align_annotations: Vertical alignment of package annotations

View source: R/align_annotations.R

align_annotationsR Documentation

Vertical alignment of package annotations

Description

Internal helper function, based on 'unheadr::regex_valign“

Usage

align_annotations(
  annot_string,
  regex_ai = paste0("(?!\\))(?!\\s)(?=\\#\\sCRAN\\sv|",
    "\\#\\sBiocon|\\#\\snot\\sinstall|", "\\#\\s\\[|\\#\\sPosit R)"),
  sep_str = ""
)

Arguments

annot_string

Character vector with annotated package calls.

regex_ai

Custom regular expression to match lines with package annotations.

sep_str

Whitespace separator.

Value

A character vector with vertically aligned package calls.


luisDVA/annotater documentation built on Feb. 2, 2024, 1:08 a.m.