this may simple, cannot find right syntax despite searching through postings:
i want create hyperlink on shiny web page when clicked should open file same location application is.
here sample code :
library(shiny); shinyapp( ui = fluidpage(a("test_hyperlink",href="./readme.txt")), server = function(input, output) { } ) readme.txt in same location application .
i tried following 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?
create folder called 'www' inside shiny app directory 'appfolder'.
put file 'readme.txt' in www folder.
file path href="readme.txt"
you have use 'runapp(appfolder)' command start shiny app. can access local files inside www folder.
Comments
Post a Comment