/
ver20.Rd
60 lines (45 loc) · 1.4 KB
/
ver20.Rd
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% Test file for Rd version 1.1
\name{ver11}
\Rdversion{1.1}
\title{Johnson & Johnson, $ _ ### ^ ~}
\arguments{
\item{foo}{item 1}
\item{bar}{space, the item 2}
\item{bah}{newline, then item 3}
}
\description{
This is the description
}
\details{
\R \R{} \\R \eqn{\Alpha\beta\Gamma}
In code, all that needs to be escaped is percent, backslash and unpaired
braces: \code{\% \\ \{}. Unescaped: \code{$ # _ ^ ~ < > |}, and as a
pair, \code{{...}}. If we escape: \code{ \a \b \_ \# \$ \& \{ \} \\ }
And some backslashes: \code{\ \\ \\\ \\\\} should
give zero, one, one, two backslashes.
How about \ (that is backslash space) in text?
Elsewhere, \{ \} \% \\ need to be escaped, but not $ # _ ^ ~ < > | .
Let's try that again in \code{\\samp}: \samp{ \{ \} \% \\ $ # _ ^ ~ < > |}.
And if we do escape: \$ \# \_ , and with three backslashes, \\\#.
\deqn{a < b > c | d, x^y}
\deqn{\$k > \#k, x_y, x\_y}
% From BaM/man/hanjack.Rd
group-weighting from $[N_iP_i(1-P_i)]$
\preformatted{
\% a
\\% b
\\\% c
\{
\\\{
}
}
\section{URLs and emails}{
URLs need to be verbatim: \url{testit ~^_$#<>|}.
Markus Kuhn, \dQuote{ASCII and Unicode quotation marks}.
\url{http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html}
No escape is needed in \email{Micah_Altman@harvard.edu}
}
\examples{
Code such as \code{foo} inside \\examples iused to be garbled.
"\\\\r\\\\n"
}