Testing R Markdown

Here are a few lines of R code. For some reason the a is showing up with some really weird styling.

a <- 1
b <- 2
c <- a + b
c
## [1] 3

And here are a few lines of Python, just to test whether the syntax highlighting looks good.

def say_hi(name):
    print("Hello,", name)
    return 1 + 2
    
say_hi("World")
## Hello, World

Let’s test a knitr::kable:

knitr::kable(
  head(iris, 10), "html", caption = "Cool caption"
)
Table 1: Cool caption
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa
4.6 3.4 1.4 0.3 setosa
5.0 3.4 1.5 0.2 setosa
4.4 2.9 1.4 0.2 setosa
4.9 3.1 1.5 0.1 setosa

And some sort of plot:

iris <- tbl_df(iris)
iris %>% ggplot(aes(x = Sepal.Width, y = Sepal.Length)) +
  geom_point(aes(color = Species))

Looks good up to this point!