luifrancgom / marketing_research_and_analytics

Repository associated to the course Marketing research and analytics
4 stars 0 forks source link

ERROR: Render failed due to invalid YAML #2

Closed luifrancgom closed 2 months ago

luifrancgom commented 5 months ago

Describe the problem in general that you are having with R or Quarto

My .qmd file is not rendering where I am getting the following error ERROR: Render failed due to invalid YAML

Point out a Minimal Reproducible Example (MRE) in relation to the problem you are having

I have the following code in a test.qmd file:

---
title: "Test"
format: 
 html:
 embed-resources: true
editor: visual
---

# Test

```{r}
1 + 1


## Settings (please complete the following information)

 - Operating system:  Windows 11 pro
 - R version: 4.3.3
 - Quarto version: 1.4.552
luifrancgom commented 5 months ago

The problem is that you need to include a double space when specifying parameters in the YALM where the problem will be fixed in the following way:

---
title: "Test"
format: 
  html:
    embed-resources: true
editor: visual
---

# Test

```{r}
1 + 1

Check the example mentioned in [https://quarto.org/docs/output-formats/html-basics.html#self-contained](https://quarto.org/docs/output-formats/html-basics.html#self-contained)
luifrancgom commented 2 months ago

Closed. The issue was solve.