Replies: 3 comments 2 replies
-
Could you properly format your post, please? And possibly change the category from "general" to "Q&A". |
Beta Was this translation helpful? Give feedback.
-
Re-written and posted to Q&A. |
Beta Was this translation helpful? Give feedback.
-
The only way you can make it work is as follow.
---
title: '`r params[["title"]]`'
params:
title: "Default"
---
Text
quarto_render("file.qmd", execute_params = list(title = "Replace the default title with this one")) If you want to override directly the metadata (e.g., |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to take vars from a df and use them as params in a call to quarto_render:
This approach works if I don't include execute_params (which was the point) but fails when I do. My guess is that either the
one_person is not structured properly, or the execute_params is incorrectly specified.
This is the failure I get;
Error in knit_params_get(input_lines, params) : render params argument must be a named list Calls: .main -> execute -> -> knit_params_get Execution halted Error in
pmap()
: ℹ In index: 1. Caused by error: ! System command 'quarto' failed Runrlang::last_error()
to see where the error occurred.--
Beta Was this translation helpful? Give feedback.
All reactions