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:
`
)selection
becomes `selection`
)selection
becomes `r selection`
)selection
is surrounded by ```{r}
above and ```
below)This gif shows each one in action:
Leave an issue or provide a PR for suggestions or additions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.