Skip to content
Discussion options

You must be logged in to vote

For future generations: from all the discussion above I'm distilling that the metadata in the YAML document header (title, author, date, description etc.)...

  1. ... can contain the inline R code `r 1 + 1` but is ignored. YAML fields are not passed through knitr
  2. ... can be accessed in the document "body" via shortcodes to render some text (c.f. shortcodes)
  3. ... are not visible in code chunks in any form (contrary to metadata object in rmarkdown, c.f. this)
  4. ... can't be modified by the code within the qmd file
  5. ... can be set externally by using -M, e.g. quarto render file.qmd -M title:"New title". The -M is a pandoc option.
  6. ... can be set externally using --metadata-file but that does not seem…

Replies: 6 comments 18 replies

Comment options

You must be logged in to vote
12 replies
@mbojan
Comment options

@cderv
Comment options

@mbojan
Comment options

@cderv
Comment options

@cderv
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cderv
Comment options

@mbojan
Comment options

Comment options

You must be logged in to vote
1 reply
@jjallaire
Comment options

Answer selected by mbojan
Comment options

You must be logged in to vote
1 reply
@cderv
Comment options

cderv Feb 2, 2024
Maintainer

Comment options

You must be logged in to vote
2 replies
@cderv
Comment options

cderv Feb 2, 2024
Maintainer

@mcanouil
Comment options

mcanouil Feb 2, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
5 participants