Skip to content

Commit

Permalink
add Rd reference output for \arguments (preparing for Rd2txt fix)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@84866 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
smeyer committed Aug 5, 2023
1 parent 798832b commit e75bf34
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
13 changes: 12 additions & 1 deletion tests/testit.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@
\usage{
\\x \\y \%\{\}

foo(\var{x}, \var{y})
foo(\var{x}, \var{y}, ...)
}
\arguments{
\item{
x,
y
}{
combined arguments, in multiple Rd lines

paragraph
}
\item{...}{description of \dots: \ldots}
}
\details{
Escaped backslash \code{\\x}.
Expand Down
20 changes: 19 additions & 1 deletion tests/testit.html.save
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,28 @@ function processMathHTML() {

<pre><code class='language-R'>\x \y %{}

foo(<var>x</var>, <var>y</var>)
foo(<var>x</var>, <var>y</var>, ...)
</code></pre>


<h3>Arguments</h3>

<table>
<tr><td><code id="testit_:_x">x</code>, <code id="testit_:_y">y</code></td>
<td>

<p>combined arguments, in multiple Rd lines
</p>
<p>paragraph
</p>
</td></tr>
<tr><td><code id="testit_:_...">...</code></td>
<td>
<p>description of ...: ...</p>
</td></tr>
</table>


<h3>Details</h3>

<p>Escaped backslash <code>\x</code>.
Expand Down
16 changes: 15 additions & 1 deletion tests/testit.tex.save
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,24 @@
\begin{verbatim}
\x \y %{}

foo(x, y)
foo(x, y, ...)
\end{verbatim}
\end{Usage}
%
\begin{Arguments}
\begin{ldescription}
\item[\code{
x,
y
}]
combined arguments, in multiple Rd lines

paragraph

\item[\code{...}] description of \dots: \ldots
\end{ldescription}
\end{Arguments}
%
\begin{Details}
Escaped backslash \code{\bsl{}x}.

Expand Down
10 changes: 9 additions & 1 deletion tests/testit.txt.save
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ _U_s_a_g_e:

\x \y %{}

foo(x, y)
foo(x, y, ...)

_A_r_g_u_m_e_n_t_s:

x,: y: : combined arguments, in multiple Rd lines

paragraph

...: description of ...: ...

_D_e_t_a_i_l_s:

Escaped backslash '\x'.
Expand Down

0 comments on commit e75bf34

Please sign in to comment.