I have a Rmd file open in Rstudio that I am trying to knit into html.
These are the first lines of the file:
—
title: “Project 2”
author: “do not enter your name”
date: “17/04/2024”
output: html_document
When I klick “knit”, the console switches to render and then displays the following error:
Error in yaml::yaml.load(..., eval.expr = TRUE) :
Parser error: while parsing a block mapping at line 1, column 1 did not find expected key at line 23, column 1
Calls: <Anonymous> ... parse_yaml_front_matter -> yaml_load -> <Anonymous>
Execution halted
My Rmd file has three data visualisations, and plenty of comments.
I tried the knit to html function via the knit button.
I also have this line further down before I load the data.
```{r setup, include=TRUE}
knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
```
student123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.