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 |
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.
bs_add_biscuits()
bs_add_biscuits()
In selected text, append {target='_blank'}
to all links that are in
the form []()
.
bs_blank_target()
bs_blank_target()
Inserts at the cursor position an expandable HTML details block.
bs_details_expand()
bs_details_expand()
Modify the selected text into the knitr comment engine. As described here.
bs_embed_comment()
bs_embed_comment()
Replace a Twitter shortcode with a chunk that contains code to embed the tweet. Also names the chunk after the shortcode.
bs_embed_tweet()
bs_embed_tweet()
Modify the selected text or URL into the form {% embed url='' caption='' %}
.
bs_embed_url()
bs_embed_url()
Inserts at the cursor position some HTML image code that has caption and alt text elements.
bs_img_accessible()
bs_img_accessible()
Modify the selected text or URL into the form [](){target='_blank'}
.
Thanks to
Emil
Hvitfeldt's blog post for guidance.
bs_make_link()
bs_make_link()
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.
bs_named_anchor()
bs_named_anchor()
Inserts at the cursor position an expandable HTML details block that contains the date of the last update and session information.
bs_session_details()
bs_session_details()