docr.list: Create an RD list from an R list

Description Usage Arguments Examples

View source: R/docr_list.R

Description

docr.list

Usage

1
docr.list(type = c("ordered", "unordered", "named"), L)

Arguments

type

Type of either:

ordered

A numbered list

unordered(bulleted)

A bullet list

named

A pair list of named objects

L

The list; if pre-constructed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
A <- list(
       Linux = 'server or machine type running in a UNIX/Linux environment',
       Windows = 'Running win-32 or win64 environment',
       `Mac OS` = 'Running MACOS system type'
     )

 # Since all list variables are named, the function defaults to `named`
 # list-type
 > docr.list(L = A)
##' \\describe{
##'   \\item{Linux}{server or machine type running in a UNIX/Linux environment}
##'   \\item{Windows}{Running win-32 or win64 environment}
##'   \\item{Mac OS}{Running MACOS system type}
##' }

> docr.list(L = A, type = "unordered")
##' \\itemize{
##'   \\item server or machine type running in a UNIX/Linux environment
##'   \\item Running win-32 or win64 environment
##'   \\item Running MACOS system type
##' }

> docr.list(L = A, type = "ordered")
##' \enumerate{
##'   \item server or machine type running in a UNIX/Linux environment
##'   \item Running win-32 or win64 environment
##'   \item Running MACOS system type
##' }

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