Compatibility with shiny server #32
Comments
Here's the current branch where I try to get it working: |
Shiny Server logs for the version using
look like this:
Note we seem to need Shiny server output for the version with the
Shiny server output for the version with the
Shiny server gets stuck on the loading screen either way |
Note on how Shiny server works, from here:
|
Comparison of |
from When using an external web browser with the server, specify the name of the R Markdown file to view in the URL (e.g. http://127.0.0.1:1234/foo.Rmd). A URL without a filename will show the default_file as described above. |
Possibly next step is to create a trivial |
Perhaps not surprisingly, everything works fine with a custom package like: Package called
Header:
|
HOLY MOLY I THINK I FIXED IT!!111 It only took 9 hours. I am a 0.01x programmer. 8 character PR incoming... |
That was a thrilling read. I'm so sorry you had such a torrid time with it -- blame me for sweeping optional arguments under the carpet in the first place. I went down similar rabbit holes before deciding it would be simpler not to pass anything, but it looks like this works for you, so let's include it. Thanks for going to all this trouble! |
Some notes from hours of debugging: The fix is to add a But the reason why that works is complicated.
Because <link href="/home/nacnudus/R/x86_64-pc-linux-gnu-library/3.6/rmarkdown/rmd/h/highlightjs/default.css" rel="stylesheet" />
<script src="/home/nacnudus/R/x86_64-pc-linux-gnu-library/3.6/rmarkdown/rmd/h/highlightjs/highlight.js"></script>
<script src="/home/nacnudus/R/x86_64-pc-linux-gnu-library/3.6/htmlwidgets/www/htmlwidgets.js"></script>
<script src="/home/nacnudus/R/x86_64-pc-linux-gnu-library/3.6/vegawidget/htmlwidgets/lib/vega/vega.min.js"></script>
<script src="/home/nacnudus/R/x86_64-pc-linux-gnu-library/3.6/vegawidget/htmlwidgets/lib/vega-lite/vega-lite.min.js"></script>
<link href="/home/nacnudus/R/x86_64-pc-linux-gnu-library/3.6/vegawidget/htmlwidgets/lib/vega-embed/vega-embed.css" rel="stylesheet" />
<script src="/home/nacnudus/R/x86_64-pc-linux-gnu-library/3.6/vegawidget/htmlwidgets/lib/vega-embed/vega-embed.js"></script>
<script src="/home/nacnudus/R/x86_64-pc-linux-gnu-library/3.6/vegawidget/htmlwidgets/vegawidget.js"></script> Hence the solution is to accept Why didn't we get the usual |
I have been trying to develop a Shiny Server Docker image that is compatible with
govdown
.The idea is that our analysts can produce an
index.Rmd
with the govdown yaml header, and deploy the Docker image to our analytical platform. On accessing the website running from the shiny server, their R Markdown document should render.At the moment, in the logs you see something like:
Navigating to the output file, the file has rendered correctly and has all the assets (css etc). I think Shiny Server just somehow fails to then serve the html file to the browser.
which is the same as you see with the standard
output: html_document
. But then from the user's point of view, the shiny server just hangs on:I suspect this may be something to do with passing through the arguments that shiny server is passing to
rmarkdown:run
.I'd be happy to attempt at PR to fix this but might be worth a quick Slack convo first - would be good to get your input to see if I'd be starting off in the right direction
I'd be very happy to discuss and attempt a PR.
The text was updated successfully, but these errors were encountered: