'Can't knit the R file that I am trying to make

So I have a document where I'm trying to knit, but I get an error where it says that

Error: object 'r' not found
Execution halted

Here is my full code:

---
title: "Test"
author: "Test Test"
date: "05.15.2022"
output: 
  html_document: 
    toc: yes
    toc_float: yes
editor_options: 
  markdown: 
    wrap: sentence
---

# Header

##chunks

```{r}
summary(cars)
```

```{r}
knitr::opts_chunk$set(message = FALSE,warning = FALSE, error = FALSE)
```

```{r}
sapply(cars,class)
```

Any help? I am really new to R.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source