Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/test.Rd
1 | % Single-line comment | 1 | % Single-line comment | ||
---|---|---|---|---|---|
2 | \name{foo} | 2 | \name{foo} | ||
3 | #ifdef unix | 3 | #ifdef unix | ||
4 | \alias{bar} | 4 | \alias{bar} | ||
5 | #endif ignored | 5 | #endif ignored | ||
6 | \title{Foo} | 6 | \title{Foo} | ||
7 | \description{ | 7 | \description{ | ||
8 | We have a list | 8 | We have a list | ||
9 | \itemize error{ | 9 | \itemize{ | ||
10 | \item foo, | 10 | \item foo, | ||
11 | \item bar. | 11 | \item bar. | ||
12 | } | 12 | } | ||
13 | Also a table: \tabular{lr}{ | 13 | Also a table: \tabular{lr}{ | ||
14 | foo \tab \code{foo} \cr | 14 | foo \tab \code{foo} \cr | ||
15 | bar \tab \preformatted{bar} | 15 | bar \tab \preformatted{bar} | ||
16 | } | 16 | } | ||
17 | \samp error{code} | ||||
17 | } | 18 | } | ||
18 | \section{Section}{ | 19 | \section{Section}{ | ||
19 | Escaped braces don't need balance \} | 20 | Escaped braces don't need balance \} | ||
20 | \subsection{Subsection}{ | 21 | \subsection{Subsection}{ | ||
21 | \subsection{Subsubsection}{ | 22 | \subsection{Subsubsection}{ | ||
22 | Sections can be nested. | 23 | Sections can be nested. | ||
23 | } | 24 | } | ||
24 | } | 25 | } | ||
25 | } | 26 | } | ||
26 | \usage{ | 27 | \usage{ | ||
27 | foo(a, b = default) | 28 | foo(a, b = default) | ||
29 | \method{[}{foo}(x, \dots) | ||||
28 | } | 30 | } | ||
29 | \newcommand{\macro}{Test#1} | 31 | \newcommand{\macro}{Test#1} | ||
30 | \arguments{ | 32 | \arguments{ | ||
31 | \item{a}{\if{html}{π =} \Sexpr[stage=build]error{4*atan(1)}} | 33 | \item{a}{\if{html}{π =} \Sexpr[stage=build]{4*atan(1)}} | ||
32 | \item{b}{\macro{text} \link[pkg:bar]{fooo}} | 34 | \item{\dots}{\macro{text} \link[pkg:bar]{fooo}} | ||
35 | } | ||||
36 | \value{ | ||||
37 | Return a \code{\link{foo}}. | ||||
33 | } | 38 | } | ||
34 | \seealso{ | 39 | \seealso{ | ||
35 | \code{\link{bar}} | 40 | \code{\link{bar}} | ||
36 | } | 41 | } | ||
37 | \examples{ | 42 | \examples{ | ||
38 | # R comment | 43 | # R comment | ||
39 | % Rdoc comment | 44 | % Rdoc comment | ||
40 | foo(1) | 45 | foo(1) | ||
46 | \donttest{foo(2)} | ||||
47 | \dontrun{foo(3)} | ||||
41 | for (i in 1:10) | 48 | for (i in 1:10) | ||
42 | foo(i) | 49 | foo(i) | ||
43 | } | 50 | } | ||
44 | \keyword{foo} | 51 | \keyword{foo} |