How to Publish to RPubs

R Markdown

Great for creating beautiful reports with a mix of text/notes and code.

Insert code

library(tidyverse)
library(palmerpenguins)
library(ggeasy)

gentoo <- penguins %>%
  filter(species == "Gentoo") %>%
  na.omit()

ggplot(gentoo, aes(x=bill_length_mm, y=body_mass_g)) +
  geom_point() +
  geom_smooth() +
  labs(title = "Relationship between bill length \nand body mass of Gentoo penguins",
       x = "Bill Length (mm)",
       y = "Body Mass") +
  easy_text_size(20)

Knit for Preview

Pretty RMarkdown formats

# add this to your YAML
output:
  prettydoc::html_pretty:
    theme: cayman
# add this to your YAML
output: rmdformats::readthedown

How to publish to RPubs?

  1. After you’ve knit your document, in the viewer pane click the blue icon in the top right corner
  2. Click publish to RPubs and publish!
  3. Provide title and URL