[R] Function for displaying arbitrary text as in 'help'.
Duncan Murdoch
murdoch@dunc@n @ending from gm@il@com
Wed Jan 2 17:44:42 CET 2019
On 02/01/2019 8:47 a.m., Nicolás San Martín wrote:
> Hi all,
>
> I am looking for a function that receives some text (any text) and displays
> it to the user in the same way as the 'help' function does. Unlike 'cat',
> that outputs the text in the current window, the one I'm looking for should
> work as 'help' that, for example, in emacs ess opens a new buffer, in the
> linux terminar displays it as the more command, etc. Is there any function
> that does this?
Help is printed by the function
utils:::print.help_files_with_topic
which is quite a long function because of all the possible ways to
display help. You might be able to adapt it to your own needs, though
it won't be trivial.
Duncan Murdoch
More information about the R-help
mailing list