% Single-line comment
{foo}
#ifdef unix
{bar}
#endif ignored
{Foo}
{
We have a list
\itemize{
\item foo,
\item bar.
}
Also a table: \tabular{lr}{
foo \tab \code{foo} \cr
bar \tab \preformatted{bar}
}
\samp error{code}
}
{Section}{
Escaped braces don't need balance \}
{Subsection}{
{Subsubsection}{
Sections can be nested.
}
}
}
{
foo(a, b = default)
\method{[}{foo}(x, \dots)
}
\newcommand{\macro}{Test#1}
{
\item{a}{\if{html}{π =} \Sexpr[stage=build]{4*atan(1)}}
\item{\dots}{\macro{text} \link[pkg:bar]{fooo}}
}
{
Return a \code{\link{foo}}.
}
{
\code{\link{bar}}
}
{
# R comment
% Rdoc comment
foo(1)
\donttest{foo(2)}
\dontrun{foo(3)}
for (i in 1:10)
foo(i)
}
{foo}