help2 {toscutil} | R Documentation |
Return help for topic
Description
This function returns the help text for the specified topic formatted either as plain text, html or latex.
Usage
help2(topic, format = c("text", "html", "latex"), package = NULL)
Arguments
topic |
character, the topic for which to return the help text. See
argument |
format |
character, either |
package |
character, the package for which to return the help text.
This argument will be ignored if topic is specified. Package must be
attached to the search list first, e.g. by calling |
Details
This function was copied in part from: https://www.r-bloggers.com/2013/06/printing-r-help-files-in-the-console-or-in-knitr-documents/
Examples
htm <- help2("sum", "html")
txt <- help2(topic = "sum", format = "text")
cat2(txt)
[Package toscutil version 2.7.4 Index]