library(shiny)
fluidPage(
tabsetPanel(
tabPanel(
"run code",
column(
6,
textAreaInput("code", "code", width = "100%", rows = 10),
actionButton("run", "run")
),
column(
6,
verbatimTextOutput("result2")
)
),
tabPanel(
"pandoc & latex",
downloadLink("word", label = "word"),
downloadLink("pdf", label = "pdf"),
verbatimTextOutput("result")
)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.