【发布时间】:2017-11-23 17:32:15
【问题描述】:
我有一个 Shiny 应用程序目录,如下所示:
-- ShinyApps
|
|_ base_app
|_ my_sub_app
在base_app 我有以下代码:
# app.R
#-----------
# Server Section
#-----------
server <- function(input, output) { }
#-----------
# UI section
#-----------
ui <- fixedPage(
h1("My head"),
br(),
br(),
fluidRow(
column(6,
wellPanel(
h3("AMAZON"),
hr(),
a("Go", class = "btn btn-primary btn-md",
href = "http://www.amazon.com")
)),
column(6,
wellPanel(
h3("My Sub App"),
hr(),
a("Go", class = "btn btn-primary btn-md")
# What should I do here to include My_SUB_APP
))
)
)
shinyApp(ui = ui, server = server)
看起来像这样:
我想要做的是,当点击My SubApp面板下的Go按钮时,它
将启动sub_app()我该怎么做?
我不想传递 URL(例如通过 href)
【问题讨论】:
-
iframe怎么样? stackoverflow.com/questions/38247343/…