Nothing
Code
docs <- r6_doc(text)
Message
x <text>:3: Must use one @return(s) per R6 method.
Code
docs <- r6_doc(text)
Message
x In topic 'C': Must use one @param for each argument.
x run(x) is not documented
x In topic 'C': Must use one @param for each argument.
x run(y) is not documented
Code
docs <- r6_doc(text)
Message
x <text>:3: Must use one @param for each argument.
x $run(x) is documented multiple times
Code
cat(format(method), sep = "\n")
Output
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Person-greet"></a>}}
\if{latex}{\out{\hypertarget{method-Person-greet}{}}}
\subsection{\code{Person$greet()}}{
Say hello.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}
\preformatted{Person$greet(who, how = "nicely")}
\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{who}}{Name to greet.}
\item{\code{how}}{Greeting style.}
}
\if{html}{\out{</div>}}
}
}
Code
cat(format(method), sep = "\n")
Output
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Foo-initialize"></a>}}
\if{latex}{\out{\hypertarget{method-Foo-initialize}{}}}
\subsection{\code{Foo$new()}}{
Create object.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}
\preformatted{Foo$new()}
\if{html}{\out{</div>}}
}
}
Code
cat(format(method), sep = "\n")
Output
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Job-run"></a>}}
\if{latex}{\out{\hypertarget{method-Job-run}{}}}
\subsection{\code{Job$run()}}{
Run the job.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}
\preformatted{Job$run()}
\if{html}{\out{</div>}}
}
\subsection{Details}{
Some details.
}
\subsection{Returns}{
The result.
}
\subsection{Examples}{
\if{html}{\out{<div class="r example copy">}}
\preformatted{job$run()
}
\if{html}{\out{</div>}}
}
}
Code
cat(format(method), sep = "\n")
Output
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Job-run"></a>}}
\if{latex}{\out{\hypertarget{method-Job-run}{}}}
\subsection{\code{Job$run()}}{
Run the job.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}
\preformatted{Job$run()}
\if{html}{\out{</div>}}
}
\subsection{Examples}{
\if{html}{\out{<div class="r example copy">}}
\preformatted{
donrun()
donttest()
}
\if{html}{\out{</div>}}
}
}
Code
cat(format(method), sep = "\n")
Output
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Job-run"></a>}}
\if{latex}{\out{\hypertarget{method-Job-run}{}}}
\subsection{\code{Job$run()}}{
Run.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}
\preformatted{Job$run()}
\if{html}{\out{</div>}}
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.