You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to test out using the !expr in the chunk YAML to include calculated results for figure legends. In the documentation it says it is possible:
#| fig-cap: !expr paste("Air", "Quality")
But when in attempting to use it, I am so far met with errors both when attempting to render and RStudio detecting errors:
Note that currently these expressions are evaluated at the beginning of knit (there is a PR into knitr to ensure they are evaluated at cell execution time: yihui/knitr#2120)
Activity
jjallaire commentedon Apr 6, 2022
Thanks for reporting this! That is our YAML validation being a bit too sensitive. For now you can get past this with:
We'll have a full fix for this soon. cc @cscheid
cscheid commentedon Apr 6, 2022
We added a fix for this in 32f0c0e. Let me know if this doesn't work!
jjallaire commentedon Apr 6, 2022
Note that currently these expressions are evaluated at the beginning of knit (there is a PR into knitr to ensure they are evaluated at cell execution time: yihui/knitr#2120)