Inline R code in _extension.yml elements, possible? #6222
-
DescriptionHi!, I am trying to develop a Quarto Journal Template, or actually, trying to learn on how to do that :) It seems I cannot include inline R code to be executed in the Look at the
in the generated PDF I get: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Syntax Quarto has a date features why not use it? |
Beta Was this translation helpful? Give feedback.
-
Could you please provide a concrete example? Because I've tried: copy-year: !expr 'date()' and copy-year: !expr 'r date()' and both yield And in the intermediate latex file I can confirm that: \copyyear{true} The reason why I don't use something like ---
date: 03/07/2005
date-format: "YYYY"
--- is because then I would not be able to use date element except as the year of the date. It would be nice if I could have different dates and format them individually: ---
birth-date: 03/07/2005
birth-date-format: "DD MM YYYY"
graduation-date: 03/07/2005
graduation-date-format: "YYYY"
--- but as far as I understand that is not possible. |
Beta Was this translation helpful? Give feedback.
!expr
won't work that way - it is for R code chunks only as a backward compatible feature with how knitr is working (#6222 (reply in thread))