testit.Rd 647 Bytes
Newer Older
1 2
% A regression test example of Rd conversion
\name{testit}
3 4
\title{An Rd Regression Test}
\alias{\{}
5
\usage{
6
\\x \\y \%\{\}
7 8 9 10 11 12 13

foo(\var{x}, \var{y})
}
\details{
  Escaped backslash \code{\\x}.

  \code{\%\{\}}
14 15 16 17
  
  \link{a link} and one to a known destination:
  \link[stats]{weighted.mean}
  
18 19 20 21 22 23 24 25 26 27 28
  var in \var{text}.
  
  \code{foo(\var{x}, \var{y})}.
  \preformatted{
  Escaped backslash \\x.

  \%\{\}

  var in \var{text}.
  
  foo(\var{x}, \var{y}).
29
  
30
  From gap: pedtodot.Rd -- n=split(m,par,"\034") 
31
  }
32 33
  Yihui Xie's example:
  \Sexpr[results=rd,stage=render]{"\\\\describe{\\\\item{def}{ghi}}"}
34 35 36 37 38
}
\examples{
\\x
\%\{\}
foo(\var{x}, \var{y})
39
}