Browse help files as RMarkdown source documents.
# install.packages("devtools")
# devtools::install_github("milesmcbain/rmdocs")
install.packages("rmdocs", repos = c('https://milesmcbain.r-universe.dev', 'https://cloud.r-project.org'))
rmdocs::rmd_help(help)
Use option rmd_doc_width to control the text width of the
documentation output. Defaults to 80.
help and ?
So in love with Rmd help that you can’t imagine it any other way? I HEAR
you. If you call library(rmdocs) Rmarkdown generating replacements for
utils::help and utils::? will be loaded into your session. Avoid the
library call if you don’t want that.
In keybindings.json, assuming you have {rstudioapi} emulation
enabled:
[
{
"description": "Rmd helpfile for object",
"key": "ctrl+shift+h",
"command": "r.runCommandWithSelectionOrWord",
"args": "rmddocs::rs_rmd_help()",
"when": "editorTextFocus"
},
]
Bind the addin ‘Rmarkdown help() on object’ to a choice keyboard shortcut and away you go.