Is it possible to test parameterized shiny flexdashboard documents via Shinytest?
I have a flexdashboard Rmarkdown document in a package. This dashboard is exposed to end users via a package function that wraps rmarkdown::run()
, passing parameters via the render_args
argument that point to the correct directories for this dashboard to read. I can't find a way via ShinyDriver
to set these parameters as the app is launched. Without passing the correct data file source directories, the dashboard will fail to render and launch, so ShinyDriver never gets instantiated properly.
Is there a way to pass parameters to such a shiny-powered flexdashboard? I'd love to get testing working for this document!