lilydole
lilydole

Reputation: 13

RMarkdown using readthedown template to knit, only show colors

just installed the package, and tried to use the readthedown template, but when I knit it to html. file, everything runs smoothly but I got this page as you can see in the screenshot

---
title: ""
date: "`r Sys.Date()`"
output:
  rmdformats::material:
    highlight: kate
---

Upvotes: 0

Views: 866

Answers (1)

J_F
J_F

Reputation: 10372

The problem is, that you have nothing to show ... so it appears all green. Your "header" ##babe I like your stlye is inside the r code. When I run your code in the following way, it all works well:

---
title: ""
date: "`r Sys.Date()`"
output:
  rmdformats::material:
    highlight: kate
---

# Summary

```{r}
summary(mtcars)
```
# Plot

```{r}
plot(mtcars$mpg, mtcars$hp)
```

enter image description here

Upvotes: 1

Related Questions