Skip to content

🔙✔️ R package: insert backtick structures with an RStudio Addin

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

matt-dray/backtick

Repository files navigation

{backtick}

Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept. R-CMD-check Blog post

Is the backtick key, `, missing from your keyboard? Has it been mapped for use by other software? Scratch your backtick itch with {backtick}.

{backtick} is a very tiny R package containing functions that insert backticks into R scripts and R Markdown documents. It's intended for use as an RStudio Addin.

Install with:

install.packages("remotes")  # if not yet installed
remotes::install_github("matt-dray/backtick")

On restart, the functions will be available to you from the RStudio Addins menu. You could also set them to keyboard shortcuts.

With these functions you can:

  • insert a single backtick (`)
  • surround selected text with backticks (selection becomes `selection`)
  • surround selected text with backticks for execution as inline R code in an R Markdown document (selection becomes `r selection`)
  • surround selected text with backticks for execution as an R code chunk in an R Markdown document (selection is surrounded by ```{r} above and ``` below)

This gif shows each one in action:

Gif of RStudio script pane. An RStudio addin called backtick is being used to insert a single backtick, surround selected text with bacticks, surround selected text with backticks as inline R code, and surround selected text with an R code chunk.

Leave an issue or provide a PR for suggestions or additions.

About

🔙✔️ R package: insert backtick structures with an RStudio Addin

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Languages