-
Is it possible to expand a variable from I have something like this:
The expansion only works outside the cell. Is there away to pass the parameter inside, e.g., as argument to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For clarity, it's a shortcode and proper syntax is This being said, the only variables you can use are the one under the There are several GitHub Discussions about this if you want to know more about it and workarounds. |
Beta Was this translation helpful? Give feedback.
For clarity, it's a shortcode and proper syntax is
{{< KEY ARG >}}
.This being said, the only variables you can use are the one under the
params
YAML key, see https://quarto.org/docs/computations/parameters.html.There are several GitHub Discussions about this if you want to know more about it and workarounds.
Quarto team has plan to allow to use variables and/or environment variables in code cells, but this is something for the future, so you'll have to be patient.