Skip to content

Conversation

dschief001
Copy link

This helps to produce correctly rendered .html files, when e.g. rendering parametrized reports.

One example for a script to render a report for multiple inputs:
library(tidyverse) for (i in c(<vector-of-params$parameter-input>)) { print(i) quarto::quarto_render( input = "<your-quarto-document-template>.qmd", output_format = "html", output_file = paste0(string = i, "<file-description>.html"), output_dir = "<output-dir-as-defined-in-quarto.yaml>", execute_params = list( parameter-input = i ) ) print(paste(i, "done")) }

This totally helped me to get this going nicely, hence a future implementation would be totally appreciated, and can of course be modified.
As the function find_quarto() is not available to a "normal" package user, an easily modified version of the quarto_render() function wasn't executable."

If not of interest, please just reject, as this is my first but very useful contribution to such a great package.
Thanks a lot,

jakob

…n order to produce correctly rendered .html output files.
@ghost ghost requested a review from cderv April 6, 2023 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant