Add link to R Shiny Application so link opens in a new browser tab -
i creating first shiny application in r. using shiny display bivariate results survey conducted. pair of input boxes users can choose variables survey, , various statistics generated (tables, plots, etc.) allowing them explore attributes of survey data.
i want include link actual pdf survey. right have written code pdf survey can linked to, clicking on text "click here download survey" appears helptext
, embedded in wellpanel
, within pagewithsidebar
. used following commands (in ui.r file):
wellpanel( helptext( a("click here download survey", href="http://www.dfcm.utoronto.ca/assets/dfcm2+digital+assets/family+and+community+medicine/dfcm+digital+assets/faculty+$!26+staff/dfcm+faculty+work+$!26+leadership+survey+poster.pdf") ) )
is there way automatically open file in new tab (of ie, firefox, etc.)? currently, functionality open link in same tab shiny app. have use forward , backwards buttons go app survey , again.
right now, right clicking link , selecting "open in new tab". there way embed functionality end code becomes default.
disclaimer: have no real experience in html or java. avid user of r. if solution possible, can please try explain embed code changes in ui.r or server.r files respectively.
adding argument target="_blank"
function a()
worked perfectly. solution @chase!!
Comments
Post a Comment