Interactive tutorial windows for your R Markdown Site

Using LearnR in your R Markdown site In this post I’m going to show you how you put a LearnR tutorial window into your R Markdown website. I haven’t outright tested this with bookdown, blogdown, or Distill, but it should work the same way for those types of sites too. This is an early draft to share this so that it can be out in the world! A better-illustrated version of this blog post is in the works.

Making pretty note boxes

My summer intern project with Alison Hill was a bookdown book called rstudio4edu (coming soon!), and for this project we wanted to create custom, pretty tip boxes (aka custom blocks, sidebars, or –as I like to call them– “div tips”) to use in the book we were writing. We also wanted to include them in a series of site templates geared towards educators (also coming soon!), using R Markdown, bookdown, etc.

Anchor Links

This summer I have been interning at RStudio on a project with Alison Hill, and I’ve been spending a lot of time getting to know bookdown and its friends. In particular, I’ve been thinking about how to make bookdown content more easily shared and accessible. I’ve noticed that some markdown files within R have built-in ways to get a link to point to specific section headings. These are called anchor links.

Trying Out Blogdown

Hello! This is my very first blog post using an R Markdown file within blogdown. I’m going to demonstrate how we can include the following in a single post: R code A plot An image (via markdown syntax) An image (via knitr::include_graphics) A relative link to another section in my site A demo using a dataset that I have read in 1) Iris data set Let’s make a plot using the iris data set in ggplot2.