This may be very simple, but I cannot find the right syntax despite searching through postings:
I want to create a hyperlink on my shiny web page which when clicked should open a file from the same location where the application is.
Here is a sample code :
library(shiny);
shinyApp( ui = fluidPage(a("test_hyperlink",href="./readme.txt")),
server = function(input, output) { } )
readme.txt is in the same location as this application .
I tried the following with no success :
file://readme.txt # relative path
file:///srv/shiny-server/myApp/readme.txt # absolute path
href://./readme.txt # relative path
href:///srv/shiny-server/myApp/readme.txt # absolute path
Any help?