I'm having an issue with inserting parameter values into a Quarto document. Despite defining a parameter in the YAML header, the document renders the literal text r params$name instead of substituting it with the parameter's value, "John Doe".
I'm not sure why the parameter substitution is not occurring as expected. Could I be missing a step, or is there a specific way to enable parameter evaluation in Quarto documents?
Any assistance or guidance would be greatly appreciated.
Thanks!
Here a version of what I found following this post and this one.
---
format:
pdf:
toc: false
number-sections: false
documentclass: article
papersize: letter
fontsize: 12pt
geometry:
- margin=1in
- heightrounded
params:
name: "John Doe"
---
# Feedback for Homework 1
**Student**: `r params$name`
I'm using the latest version of Rstudio and Quarto Client.