I know how to use tags$iframe
with src
pointing to my pdf
or jpeg
file located in my www
folder like this question explains: displaying a pdf from a local drive in shiny
My problem, however, is that I do not want to make the files publicly accessible through the www
folder. To avoid this, I have tried using imageOutput()
and renderImage()
and gotten picture files to work reasonably-well.
My issue still remains with the pdfs
which do not load using imageOutput
. How can I embed a pdf
in my shiny-app without making it publicly available in the www
folder. Ideally, this solution would also work with jpeg
and other picture files as well.
The iframe
solution is perfect except for its publicly available www
folder