knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
library(shiny) ui <- fluidPage( tagsTextInput("fruits", "Fruits", "apple, banana"), textOutput("out") ) server <- function(input, output){ output$out <- renderPrint( strsplit( input$fruits, ",")[[1]] ) } shinyApp( ui, server )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.