Package 'rmdocs'

Title: Open R help files in RMarkdown format
Description: Open R Help files in RMarkdown format in a new editor tab. Includes an RStudio addin to do this for the current selection or word cursor is on. Compatible with RStudio and VSCode.
Authors: Miles McBain [aut, cre] (YOUR-ORCID-ID)
Maintainer: Miles McBain <[email protected]>
License: MIT + file LICENSE
Version: 0.1.3
Built: 2024-10-30 04:15:31 UTC
Source: https://github.com/milesmcbain/rmdocs

Help Index


Browse a help file as an Rmd

Description

A drop-in replacement for help() that opens the help file as Rmd.

Usage

rmd_help(topic, package = NULL)

Arguments

topic

bare symbol to search for help on. pkg::func syntax is supported and if used package is ignored.

package

package name to resolve symbol in

Details

You're better off binding this to a key or using the RStudio addin. See README.

Value

nothing. Opens help as side effect.

Examples

## Not run: 
rmd_help(help)

## End(Not run)

RMarkdown help() on cursor word or selection

Description

Analagous to the default F1 shortcut in RStudio, except it opens the help for the thing the cursor is on, or is selected, in Rmd format.

Usage

rs_rmd_help()

Details

Bind the 'RMarkdown help() on object addin to a keyboard shortcut to use this.

Value

nothing. Opens document as side effect