Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在我闪亮的R应用程序中添加垂直社交共享栏?_Html_Css_R_Shiny_Shinydashboard - Fatal编程技术网

Html 如何在我闪亮的R应用程序中添加垂直社交共享栏?

Html 如何在我闪亮的R应用程序中添加垂直社交共享栏?,html,css,r,shiny,shinydashboard,Html,Css,R,Shiny,Shinydashboard,我正在尝试在我闪亮的R应用程序中添加一个垂直浮动的社交栏。我从中获得了HTML代码,如下所示: <script> document.write('<script src="//sharebutton.net/plugin/sharebutton.php? type=vertical&u=' + encodeURIComponent(document.location.href) + '"></scr' + 'ipt>'); 文件。写(“”); 这

我正在尝试在我闪亮的R应用程序中添加一个垂直浮动的社交栏。我从中获得了HTML代码,如下所示:

<script>
document.write('<script src="//sharebutton.net/plugin/sharebutton.php? type=vertical&u=' + encodeURIComponent(document.location.href) + '"></scr' + 'ipt>');

文件。写(“”);
这是我的代码:

require(shiny)
require(shinydashboard)

ui=shinyUI(fluidPage(
titlePanel("title panel"),
tabsetPanel(
tabPanel("Panel 1"),
tabPanel("Panel 2")),
tags$script(HTML("<script>
               document.write('<script src=\"//sharebutton.net/plugin/sharebutton.php?type=vertical&u=' 
               + encodeURIComponent(document.location.href) + '\"></scr' + 'ipt>');"))))
server <- function(input, output){}
shinyApp(ui, server)
require(闪亮)
要求(仪表板)
ui=shinyUI(fluidPage(
标题板(“标题板”),
选项卡面板(
选项卡面板(“面板1”),
选项卡面板(“面板2”),
标记$script(HTML(“
文件。写(“”);“”)

你找到答案了吗?你找到答案了吗?