Package 'backtick'

Title: Insert Backticks And Backtick Structures
Description: Insert into an R script a backtick; surround text with backticks; or surround text with backticks to demarcate inline or chunked R code in an R Markdown document. Intended for use as an RStudio Addin.
Authors: Matt Dray [aut, cre]
Maintainer: Matt Dray <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-10-24 03:27:52 UTC
Source: https://github.com/matt-dray/backtick

Help Index


Insert Backtick

Description

Insert a single backtick. In R Markdown file, one backtick will be inserted. RStudio automatically adds a second backtick when this function is used in an R script.

Usage

bt_backtick()

Insert Backticks

Description

Surround selected text with backticks. Use it to style strings as code when rendering an R Markdown file, or to reference variable names that contain spaces.

Usage

bt_backticks()

Insert Chunk

Description

Place selected text inside an R Markdown chunk. Places triple backticks above and below the selection, with an 'r' in curly braces after the first set. The content will be executed on render.

Usage

bt_chunk()

Insert Inline R Code

Description

Surround selected text with backticks and begin with an 'r'. Use this to demarcate inline R code in R Markdown so that it's executed on render.

Usage

bt_inline()