File: ver20.Rd

package info (click to toggle)
r-base 3.1.1-1%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 85,436 kB
  • ctags: 35,389
  • sloc: ansic: 306,779; fortran: 91,908; sh: 11,216; makefile: 5,311; yacc: 4,994; tcl: 4,562; objc: 746; perl: 655; asm: 553; java: 31; sed: 6
file content (58 lines) | stat: -rw-r--r-- 1,366 bytes parent folder | download | duplicates (11)
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{Micah_Altman@harvard.edu}
}

\examples{
"\\\\r\\\\n"
}