Is it possible to pass parameters to shiny-server hosted interactive (Rmd) files which have static parameters defined in the YAML header?
I have a flexdashboard Rmd file using the shiny runtime which I'd like to deploy to a shiny-server (specifically, a docker container derived on the rocker base image). My Rmd has a couple of parameters which, in an interactive environment, I override via params
in the rmarkdown:::run
call. If I drop the RMD in the shiny-server directory, there's no opportunity to change the parameters. Looking over the shiny-server source, there doesn't look to be a way to accomplish this short of writing a shiny app wrapper.
Ideally, I'd be able to pass parameters in the url (e.g. http://localhost:3838:/mydocument.Rmd?param1=foo¶m2=bar
) but I'm open to other approaches!
Thanks in advance for the help!
David