Package 'blogsnip'

Title: Misc RStudio Addins to Help R Markdown
Description: Assorted RStudio addins for personal use that insert code snippets to help me write R Markdown documents, particularly {blogdown} posts.
Authors: Matt Dray [aut, cre], Serdar Balci [ctb]
Maintainer: Matt Dray <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9004
Built: 2024-11-28 05:10:01 UTC
Source: https://github.com/matt-dray/blogsnip

Help Index


Add Closing Paren Labels [WIP]

Description

In development. Adds comments after closing parentheses in your selection with the name of the function being closed (sometimes called 'biscuits'). Warning: also styles the file. Please check the output.

Usage

bs_add_biscuits()

Add Blank Target to Links

Description

In selected text, append {target='_blank'} to all links that are in the form []().

Usage

bs_blank_target()

Insert Details

Description

Inserts at the cursor position an expandable HTML details block.

Usage

bs_details_expand()

Insert knitr comment engine

Description

Modify the selected text into the knitr comment engine. As described here.

Usage

bs_embed_comment()

Embed Tweet

Description

Replace a Twitter shortcode with a chunk that contains code to embed the tweet. Also names the chunk after the shortcode.

Usage

bs_embed_tweet()

Embed URL

Description

Modify the selected text or URL into the form {% embed url='' caption='' %}.

Usage

bs_embed_url()

Insert Accessible Image

Description

Inserts at the cursor position some HTML image code that has caption and alt text elements.

Usage

bs_img_accessible()

Add Named Anchor

Description

Add a named anchor to the selected text, generating a hyphenated tag in the process. Remember to add '#anchor-tag' to where your anchoring to.

Usage

bs_named_anchor()

Insert Session Details

Description

Inserts at the cursor position an expandable HTML details block that contains the date of the last update and session information.

Usage

bs_session_details()