Are you trying to hyperlink a PDF file inside your R Markdown? What would you want the expected behaviour to be? Opening the PDF file in a separate window?
You may also consider embedding the PDF file inside the HTML file with one of the following commands:
A fully-scrollable and downloadable PDF is embedded directly in the HTML document. One using Markdown syntax, the other (my preferred) using knitr and chunk opts.
Otherwise, you are probably better off creating a downloadButton/Handler and allow users to download the PDF locally. It's another option.
Thanks Matt!
Yes, I'm just trying to hyperlink to a pdf, very basic stuff.
But I can't figure out the right syntax in the case of markdown content loaded from an includeMarkdown() call.
OK, I found the solution.
I needed to add shiny::addResourcePath('www', here::here("www")) to my server function. I thought it was taken care of automatically by Shiny.