Replies: 1 comment
-
The knitr workaround for this is to generate chunks dynamically, e.g. with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
RStudio version: Version 2023.03.1+446 (2023.03.1+446)
Quarto version: 1.3.353
knitr version: 1.42
OS: macOS Ventura 13.3.1
I am familiar with the use of
!expr '...'
in thefig-cap
chunk options, but it does not seem to work for the label option. Is there another way to dynamically generate chunk labels based on R code? Examples:This works:
But this won't work:
I am familiar with the use of
!expr '...'
in thefig-cap
chunk options, but it does not seem to work for the label option. Is there another way to dynamically generate chunk labels based on R code? Examples:This works:
This second example yields error:
Thank you!!!
Beta Was this translation helpful? Give feedback.
All reactions