Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

shiny: open new browser tab from within shiny app

Tags:

r

shiny

From within shiny I want to open a HTML page in a new browser tab. Here it is pointed out that I need JS for that task. Let's say I want to open the URL http://www.google.com in a new tab from within my shiny app. I am not familiar with JS yet and I do not know which code where to include and how to call it from within the shiny app. How can I go about it?

like image 380
Mark Heckmann Avatar asked Jul 06 '13 11:07

Mark Heckmann


1 Answers

You shouldn't need anything more fancy than traditional, shiny-ified HTML:

a("test", href="http://google.com", target="_blank")  

You're just looking to set the target attribute on the a tag which tells your browser where to open this new link you created.

like image 102
Jeff Allen Avatar answered Oct 30 '22 02:10

Jeff Allen