qmd not rendering; RStudio giving error on incorrect code

I have recently encountered an error when trying to render a QMD. It started on a new QMD I created, but now happens on every QMD, including ones that previously rendered just fine.

In addition, RStudio seems to be having an issue where it is reporting the same error for code from the first qmd I render on a second qmd that doesn't have the code referenced in the error.

Result of trying to render the WST1_... file:

Then trying to render the Gntc_Ph.... file. Note that the "image: " line in this file is not what the error is showing:

I think that we probably need to see the the original document or a reduced version of it pasted here. See FAQ: Tips for writing R-related questions for some suggestions.

WST1-_NC3-.qmd:

---
title: "Woman sues Steven Tyler, alleging child sex assault in 1970s"
source: "News Channel 3-12"
published_at: "2022-12-30"
url: "https://keyt.com/news/2022/12/30/woman-sues-steven-tyler-alleging-child-sex-assault-in-1970s/"
description: "Woman sues Steven Tyler, alleging child sex assault in 1970sThe post Woman sues Steven Tyler, alleging child sex assault in 1970s appeared first on News Channel 3-12."
image: "news_code/rss_img.png"
---


  Published: {{< meta published_at >}}
  

  Source: {{< meta source >}}
  

  [Read full article]({{< meta url >}})
  

Gntc_434-227-9416.O_2022-12-06.qmd:

---
source: "Phys.Org"
author: "Elaina Hancock"
title: "Genetic barriers, a warming ocean, and the uncertain future for an important forage fish"
description: "In the vast oceans, one would assume their inhabitants can travel far and wide and, as a result, populations of a species would mix freely. But this doesn't appear to be the case for a vital forage fish called the sand lance."
url: "https://phys.org/news/2022-12-genetic-barriers-ocean-uncertain-future.html"
image: "https://scx2.b-cdn.net/gfx/news/2022/genetic-barriers-a-war.jpg"
published_at: "2022-12-06"
content: "In the vast oceans, one would assume their inhabitants can travel far and wide and, as a result, populations of a species would mix freely. But this doesn't appear to be the case for a vital forage f… [+6533 chars]"
search_date: "2022-12-21"
terms: "Seabirds"
---


Published: {{< meta published_at >}}


Source: {{< meta source >}}


[Read full article]({{< meta url >}})



![](`r rmarkdown::metadata$image[1]`)

I do not see any YAML.

Weirdly enough, this runs for me though I have no idea if is what you want.

---
title: "En français"
author: "jean le toucanite"
format: pdf
---

---
title: "Woman sues Steven Tyler, alleging child sex assault in 1970s"
source: "News Channel 3-12"
published_at: "2022-12-30"
url: "https://keyt.com/news/2022/12/30/woman-sues-steven-tyler-alleging-child-sex-assault-in-1970s/"
description: "Woman sues Steven Tyler, alleging child sex assault in 1970sThe post Woman sues Steven Tyler, alleging child sex assault in 1970s appeared first on News Channel 3-12."
image: "news_code/rss_img.png"
---


  Published: {{< meta published_at >}}
  

  Source: {{< meta source >}}
  

  [Read full article]({{< meta url >}})
  



Choose two blocks of YAML works?

No idea. I was not even sure if it was calling for a second YAMAL or the --- were calling for some kind of block. It is definitely even wonkier without the second YAMAL. I believe the OP needs to give us more background and code.

I have only been playing around Rmarkdown/Quarto for a few days. Normally I would use LaTeX/LyX if I actually was writing something.

1 Like

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.