How do I add a link to open a pdf file in a new window from my R shiny app? -


i can use a() add hyperlink in external site shiny app,

a("google",href="http://www.google.com") 

but how make link open pdf (or similar) file? seems should simple, can't find examples. question similar one:

add link r shiny application link opens in new browser tab

but don't know how structure href part- put file opened , how specify location? i've tried simple things http:///c:/folder/file.pdf or file:///c:/folder/file.pdf file either not found or wont open.

i new shiny , have no html experience, suggestions appreciated.

thanks

put pdf file inside "www" directory (it has subdirectory inside directory there ui.r , server.r )

then can run shiny with:

a("click on me",target="_blank",href="myfile.pdf") 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -