Replies: 1 comment
-
You are mixing various things making it harder to expect a particular result. This being said, as with any shiny applications, assets need to go under |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi everyone,
I'm working on an automated reporting system using Quarto (flexdashboard) and Shiny. The idea is that users can upload data, interact with the dashboard to explore statistics, and then generate a PDF report that reflects their selected statistics.
Setup
My main Quarto file (
main.qmd
) is structured as a Shiny flexdashboard:I have a separate Quarto file (
pdf_file.qmd
) that is responsible for generating the final PDF report. This file should receive selected input variables from the dashboard and render a report accordingly.How I'm Calling the Report
In
main.qmd
, I trigger the report generation viadownloadHandler
:The Problem
pdf_file.qmd
in thesrc/
folder.normalizePath("src/pdf_file.qmd", mustWork = TRUE)
in R returns the correct absolute path, but Quarto still throws an error.What I Tried
pdf_file.qmd
exists insrc/
quarto_render()
quarto::quarto_render("src/pdf_file.qmd")
manually (works fine outside Shiny)quarto::quarto_path()
is correctly set upQuestion
How can I properly call
pdf_file.qmd
frommain.qmd
in a Shiny + Quarto setup, ensuring that parameters are passed and the pdf report generates correctly?Beta Was this translation helpful? Give feedback.
All reactions