Learn R Programming

⚠️There's a newer version (0.1.0) of this package.Take me there.

remedy

{remedy} provides addins to facilitate writing in markdown with RStudio.

All the functions are meant to be mapped to keyboard shortcuts. A list of suggested shortcuts is provided towards the end of this README.

Note that all the addins/shortcuts below will also work without selecting any text.

Install

devtools::install_github("ThinkR-open/remedy")

Once you've installed the package, you don't need to load it with library(), the addins are installed on your machine as part of the package install process.

Using {remedy}

Write quicker in markdown with {remedy}!

Here's a list of all available helpers:

Backtick

Enclose the selected word(s) in backticks.

Chunk

Turn the selected text into a chunk.

Emphasise

Embolden, italicize or strikethrough the selected text.

Headers

Turn the selected text into a header.

Image

Turn the selected path into an image.

This element is context aware: if you select a text and a link, it turns the text into title between ![], and puts the link between ().

If the last element of the selection is not a link, you get an error message straight into you markdown document.

List

Turn the selected text into an unordered list.

Moving

On the right

Copy the selected text or the current line to the right.

Table

Insert a table inside your doc.

URL

Turn the selected text into an url.

This element is context aware: if you select a text and a link, it turns the text into title between [], and puts the link between ().

If the last element of the selection is not a link, you get an error message straight into you markdown document.

Recommended shortcuts

Here's a list of recommended shortcuts:

On mac

  • backtick : "Ctrl+Cmd+`"
  • bold : "Ctrl+Cmd+B"
  • chunk : "Ctrl+Alt+Cmd+C"
  • down : "Cmd+Alt+Down" (overrides the default)
  • h1 : "Ctrl+Cmd+1"
  • h2 : "Ctrl+Cmd+2"
  • etc...
  • image : "Ctrl+Cmd+P"
  • italics : "Ctrl+Cmd+I"
  • list : "Ctrl+Shift+Cmd+="
  • right : "Alt+Cmd+Right"
  • strike : "Ctrl+Cmd+S
  • table : "Ctrl+Cmd+T"
  • url : "Ctrl+Cmd+U"

Feedbacks and enhancement

You've found a bug, or have an enhancment idea? Feel free to open an issue : https://github.com/ThinkR-open/remedy/issues.

Copy Link

Version

Install

install.packages('remedy')

Monthly Downloads

298

Version

0.0.0.9000

License

MIT + file LICENSE

Maintainer

Colin Fay

Last Published

December 3rd, 2018

Functions in remedy (0.0.0.9000)

imager

Imager
is_link

Check if text is a relative link or URL
italicsr

Emphasize
h1r

Convert to header
listr

Listr
rightr

Mover
backticker

Backtick
chunkizer

Chunkize
tabler

Tabler
urlr

urlr
latexr

LaTeX