Get the text of the usage section of Rd documentation.
an Rd object or a character string
rdo is a string, it is parsed to obtain an Rd object.
The content of section "
\usage" is extracted and converted to string.
get_usage_text can be generalised to any Rd section but it is
better to use a different approach since
print.Rd() does not
take care for some details (escaping %, for example). Also, the
functions that use this one assume that it returns R code, which
may not be the case if the usage section contains Rd comments.
Georgi N. Boshnakov
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.