Set Rd text format defaults to be supplied to options(rdoc.text_formats
= rdoc_text_formats())
rdoc_text_formats(r_logo = crayon::combine_styles("bold", "blue"),
pkg = function(x) paste0("{", x, "}"),
inline_code = prettycode::default_style(), italic = crayon::italic,
bold = crayon::bold, table = list(float = "center", border_style =
"single", align = "left"), email = crayon::underline,
url = crayon::underline, href = crayon::underline,
link = function(x) x)
R symbol
pkg references
inline code, options to pass to the style
argument
of prettycode::highlight
as a list of functions.
italic font
bold font
tabular, options to pass to cli::boxx
as a list.
email formats
url references
href
links
The input will generally be a function, unless otherwise indicated
above. Functions must take and return a character vector. If set as
NULL
, the relevant text will be displayed using the defaults of
tools::Rd2txt
or the calling function it is passed to. Note that
href and link formatting refer to the source reference which will otherwise
be excluded by tools::Rd2txt
.