I'd like to get the text of the documentation of all the arguments of all functions in R which have as name data
. How would I need to do this?
So if I have a function e.g. MASS::truehist, I would like to get the text next to argument data
in the documentation in R as a string. So that would be "numeric vector of data for histogram. Missing values (NAs) are allowed and omitted."
How do I do that?
The following shows me that there is an argument called data. But how to retrieve in R (not just in the help environment) the text of that documentation?
formals(MASS::truehist)