-
Notifications
You must be signed in to change notification settings - Fork 204
/
Copy pathver20.Rd
58 lines (44 loc) · 1.33 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
% Test file for Rd version 1.1
\name{ver20}
\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{ \_ \# \$ \& \{ \} \\ }
And some backslashes: \code{\ \\ \\\ \\\\} should
give one, one, two, 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{[email protected]}
}
\examples{
"\\\\r\\\\n"
}