在rShiny的弹出窗口中打开URL



我正试图打开一个弹出窗口,根据链接使用URLmodal((方法打开一个URLhttps://rdrr.io/cran/shiny/man/urlModal.html

有人能在弹出窗口中显示打开谷歌网站的方法吗。

urlModal()将仅在模式对话框中显示url文本(使用showModal()(,如文档中所述。

如果你需要以弹出窗口的形式打开浏览器的新窗口,你可以在应用程序的UI部分插入一些javascript作为HTML标签:

HTML('<button id="go" type="button" class="btn btn-default action-button" onclick="window.open('https://www.google.com','popUpWindow','height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');">Go</button>')

请将此作为更改选项的参考。

最新更新