what is the problem? (YAML)


title: "exam"
author: "SAADUN"
date: "2022-10-19"
output:
html_document:
theme: cerulean
df_print: paged
highlight: tango
number_sections: yes
tango: yes
toc_float: yes
editor_options:
chunck_output_type: inline


Erreur dans yaml::yaml.load(..., eval.expr = TRUE) :
Scanner error: mapping values are not allowed in this context at line 2, column 8
Appels : ... parse_yaml_front_matter -> yaml_load ->
Exécution arrêtée

Bonjour @saad_saad,
Votre en-tête YAML a été mutilé. Ça devrait ressembler à ça:

---
title: "exam"
author: "SAADUN"
date: "2022-10-19"
output: html_document
theme: cerulean
df_print: paged
highlight: tango
number_sections: yes
tango: yes
toc_float: yes
editor_options:
chunck_output_type: inline
---

il reste le meme probleme

title: "SAAW"
author: "saadouni saad"
date: "2022-10-20"
output:
html_document:
theme: cerulean
df_print: paged
highlight: tango
number_sections: yes
toc: yes
toc_float: yes
editor_options:
chunck_output_type: inline

Hello @saad_saad ,

can you format the first part of your rmarkdown document (the yaml and the first few lines of the text) in the way it as was done by @DavoWW ?
You can do that by enclosing it with four backticks (````).
In that way we can have a good look at your code.

Now it looks like you did not use indentation which almost certainly is not what you did.

1 Like

This topic was automatically closed 21 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.