Quarto not Rendering with R Chunks

My code is not working when I render a document in quarto. I get the error below:

processing file: Quarto.qmd
|......................................... | 67% [setup]WARN: Error encountered when rendering files

This is happening specifically in my code chunks, as the file is rendering fine when I just have text. It also runs fine with r code like 1+1.

Last week, I was able to get Quarto to read in and use 50,000 records only (for some reason, I couldn't load more than that). Today, I can't even run a chunk with just a package.

I write out my R code in a separate script and run it in that, so I know the R code itself works. When I run the chunk in Quarto without rendering, it works just fine as well.

This is all I have set up in my document:

title: "Quarto"

Quarto

test file

library(tidyverse)

Welcome to the forum

You are not giving us much to go on. We probably need your actual code including the YAML and R-code in the chunk. Some sample data would probably also

Please copy the code and paste it here between

```

````

This gives us formatted code that we can copy, paste and run . Often a person here does not have the time to type out code to test it and find a problem.

A handy way to supply data is to use the dput() function. Do dput(mydata) where "mydata" is the name of your dataset. For really large datasets probably dput(head(mydata, 100) will do. Paste it here between

```

```
You may also find this helpful.
FAQ: How to do a minimal reproducible example ( reprex ) for beginners be useful.