<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Blogsnip on rostrum.blog</title>
    <link>https://www.rostrum.blog/tags/blogsnip/</link>
    <description>Recent content in Blogsnip on rostrum.blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Sat, 19 Feb 2022 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://www.rostrum.blog/tags/blogsnip/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Add in an RStudio Addin to add in backticks</title>
      <link>https://www.rostrum.blog/2022/02/19/backtick/</link>
      <pubDate>Sat, 19 Feb 2022 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2022/02/19/backtick/</guid>
      <description>tl;dr I wrote a tiny R package called {backtick}, which contains an RStudio Addin with a handful of functions for inserting backticks into your R scripts and R Markdown documents (yes, really).
 Plus one RStudio Addins let you select an R function from a dropdown menu in the RStudio IDE. They’re often functions that you don’t need in your executed script, but can make your life easier by performing some kind of supportive action.</description>
    </item>
    
    <item>
      <title>Auto-label closing parentheses in RStudio</title>
      <link>https://www.rostrum.blog/2021/08/31/add-biscuits/</link>
      <pubDate>Tue, 31 Aug 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2021/08/31/add-biscuits/</guid>
      <description>tl;dr I wrote a novelty R function that inserts comments after closing parentheses with the names of the functions they belong to. (These are called biscuits, apparently.) It’s available as an RStudio Addin from the {blogsnip} package.
 Matryoshka functions Shiny apps can involve a lot of nested functions in the UI, which can make them difficult to handle.
Sometimes I comment after a closing parenthesis (‘paren’) with the name of the function that it’s closing, which makes it easier to match the pairs.</description>
    </item>
    
    <item>
      <title>{blogsnip}: an RStudio addin package</title>
      <link>https://www.rostrum.blog/2019/10/22/blogsnip/</link>
      <pubDate>Tue, 22 Oct 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2019/10/22/blogsnip/</guid>
      <description>Inserting a details block with the {blogsnip} addin  tl;dr On my commute home I made {blogsnip}: a tiny package of RStudio addins that add snippets of R code to help me write blog posts.
Install with:
install.packages(&amp;quot;remotes&amp;quot;) remotes::install_github(&amp;quot;matt-dray/blogsnip&amp;quot;)  The problem I’m lazy.
There’s some bits of code I often want to put in my blog posts (written in R Markdown) but I can’t remember them.
In particular:
 an expandable ‘details’ section1, which sometimes contains R session information and the date of the post’s last update (see examples throughout this previous post) a way to add an image with a caption and alt text that differ (like the gif at the top of this post), something that makes the images more accessible for users of screen readers, for example a link that opens in a new tab, rather than in the tab where you’re reading a post (as per this tweet by Albert Y Kim)  Originally I stored them in a GitHub Gist, but this is sub-optimal: the internet connection on my commute can be patchy.</description>
    </item>
    
  </channel>
</rss>