docr.wrap: Properly wrap free-hand RD text

Description Usage Details Examples

View source: R/docr_wrap.R

Description

docr.wrap

Usage

1
2
docr.wrap(x = NULL, gap_btw_lines = TRUE, pre_fix = "#'", file = NULL,
  assign_as = NULL)

Details

This is text t

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Created a line of body text with formatting
my_text <- paste0(collapse=" ",
             c('A function which allows passing',
               docr.txt('italics','external'),
               'arguments in the form of',
               docr.txt('code','alist')))

> docr.wrap(my_text)
# #'  A function which allows passing \\emph{external} arguments
# #'   in the form of \\code{alist}

CarlBoneri/roxydoc2 documentation built on Nov. 6, 2019, 8:01 a.m.