Forums | OpenR

OpenR: R & Statistics /
A question about rmarkdown template


Jiayu Zhang's profile picture
Posts: 7

03 March 2022, 9:56 PM

When I use a template "HTML material design template", the result shows the R code like the following picture, but I don't know how to solve it. 

The R code is:

---
title: "Analysis of covariance (ANCOVA)"
date: "2022-03-03"
author: "Jiayu Zhang"
output:
rmdformats::material:
highlight: kate
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

 

Peng Zhao's profile picture
Posts: 128

04 March 2022, 10:21 AM

Your Rmd code works fine for me. I cannot reproduce your problem. Did you miss anything?

 

---
title: "Analysis of covariance (ANCOVA)"
date: "2022-03-03"
author: "Jiayu Zhang"
output:
rmdformats::material:
highlight: kate
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
2 results