o_help
retrieves the Octave help page associated
with a given symbol. By default the page is printed out,
but may also be silently retrieved or formatted for
direct inclusion in R documentation files (i.e. Rd
files). o_doc
displays documentation for the function
FUNCTION_NAME directly from an on-line version of the
printed manual, using the GNU Info browser. Type `q` to
quit the browser.
o_help(NAME, character.only = FALSE,
show = interactive(),
format = c("plain", "rd", "txt", "latex", "HTML")) o_doc(FUNCTION_NAME)
help
to
retrieve the related documentation.NAME
can be assumed to be a character string
(TRUE
) or should be substituted with
substitute
before using them (default).show=TRUE
, the
string is still returned but invisibly.TRUE
or 'rd'
, the result is Rd code that
wraps the Octave documentation string and is suitable for
inclusion into Rd files. If one of the strings
'txt', 'latex'
or show=TRUE
), but it invisibly returns the help page
as a single character string. [Generated from
Octave-
[Generated from
Octave-
o_help(print) o_help(rand) # or equivalently o_help('rand')
# to include in Rd files, use argument rd=TRUE in an \Sexpr: \Sexpr[results=rd,stage=render]{RcppOctave::o_help(rand, format='rd')}
# to see the included Rd code o_help(rand, format=TRUE) o_help(rand, format='HTML') o_help(rand, format='latex') o_doc(text) # or equivalently o_doc('text')