When I use an interactive notebook with runtime: shiny
I cannot use relative paths for static images on shiny-server
. For example, say I have:
output: html_notebook
runtime: shiny
Then locally, I can embed an image with:
[](./images/pic1.png)
But when I go to serve this via shiny-server
, I am unable to use relative paths. The only way I can get the image to show up is by providing the full path:
[](/srv/shiny-server/path-to-rmd-file/images/pic1.png)
Is there a way to use relative paths for static images with runtime: shiny
? Without relative paths, I am not sure how to create content locally and then publish to server without some find-and-replace trickery.