Possible Duplicate:
R help page as object
I can do
temp <- help('ls')
But I can’t get a handle on this object. I don’t think there’s much meat in it except a call is there? unclass, str, attributes don’t seem to lead anywhere.
I would like to, for example,
(1) Extract the text of the Details section of the help for ls; and
(2) Extract all the text into one big string.
Any ideas? Thanks
helpitself doesn’t return anything useful. To get the help text, you can read the contents of the help database for a package, and parse that.pkgis a character string giving the name of a packagefnis a character string giving the name of a function within that package. If it is left asNULL, then the help for all the functions in that package gets returned.toconverts the help file to txt, tml or whatever.Example usage: