Rev 87961 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\HeaderA{testit}{An Rd Regression Test}{testit}\aliasB{\{}{testit}{.Rlbrace.}%\begin{Usage}\begin{verbatim}\x \y %{}foo(x, y, ...)\end{verbatim}\end{Usage}%\begin{Arguments}\begin{ldescription}\item[\code{x}, \code{y}]combined arguments, in multiple Rd linesparagraph\item[\code{...}] description of \dots: \ldots\end{ldescription}\end{Arguments}%\begin{Details}Includedconditional content.Escaped backslash \code{\bsl{}x}.\code{\%\{\}}\LinkA{a link}{a link} and some to known destinations:\code{\LinkA{weighted.mean}{weighted.mean}}, \LinkA{dito}{dito},\code{\LinkA{\{}{Paren}}, \LinkB{\env{R\_HOME}}{R.Rul.HOME}.var in \var{text}.\code{foo(\var{x}, \var{y})}.Preformatted:\begin{alltt}Escaped backslash \bsl{}x.%\{\}var in \bsl{}var\{text\}.foo(\bsl{}var\{x\}, \bsl{}var\{y\}).From gap: pedtodot.Rd -- n=split(m,par,"\bsl{}034")\end{alltt}\end{Details}%\begin{Value}[NULL]\\{}\\{}\dots\end{Value}%\begin{Section}{\AsIs{\texttt{\bsl{}Sexpr}}}Yihui Xie's example:\begin{description}\item[def] ghi\end{description}--\AsIs{\texttt{> cat("\bsl{}noutput\bsl{}n")output}}--\AsIs{\texttt{> x<-007}}\end{Section}%\begin{Section}{\AsIs{\texttt{\bsl{}tabular}}}\Tabular{crl}{1 & \Rhref{https://example.org/a\&b\#c}{linked text in \AsIs{\texttt{\bsl{}tabular}}}& \url{https://example.org/a\&b\#c}\\{}2 & 2nd-column entry with \emph{line break}in Rd source& thirdcolumn\\{}--3-- & thirdrow&}\end{Section}%\begin{Section}{\AsIs{\texttt{\bsl{}deqn}}}1-arg form, centered also in text conversion:\deqn{\theta = (\mu^*, \sigma^2, \rho)}{}2-arg form, where the text version is collapsed before centering(for the sake of existing Rd files):\deqn{E = mc^2}{}With AMS extension (R \eqn{\ge}{} 4.2.2),where the text version spans more than 3 source lines (5 in fact)and is thus output as-is in R \eqn{\ge}{} 4.4.0:\deqn{f(x) = \begin{cases}0 & \text{if } x < 0, \\1 & \text{if } x \ge 0.\end{cases}}{}\end{Section}%\begin{Examples}\begin{ExampleCode}\x%{}## Not run: stop("doomed to fail")foo(x,y)\end{ExampleCode}\end{Examples}