Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduced a output_dir parameter, which sets the --ouput-dir flag #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.
@allenmanning allenmanning 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