docr.wrap: Properly wrap free-hand RD text

Description Usage Examples

View source: R/utils_docr.R View source: R/docr_wrap.R

Description

docr.wrap

docr.wrap

Usage

1
2
3

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# 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}

# 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/taskr documentation built on June 1, 2017, 11:02 p.m.