From
---
title: "Params"
format: markdown
params:
number: null
---
```{r}
print(params$number)
```
quarto::quarto_render("param.qmd", execute_params = list(number = "029"))
This would print number as explained in the upstream issue. The solution is to pass quotes because this is 1.2 spec used in Quarto.
quarto render param.qmd -P number:'"029"'
and in YAML file it should be
However, this is not written like than by the R package because write_yaml() will do YAML v1.1 spec.
Doing
quarto::quarto_render("index.qmd", execute_params = list(number = "'029'"))
will not work because the YAML written is
We need to handle this case specifically in an handler, or just quote all the character type from R to yaml conversion 🤔