shinyEditable
package is an R wrapper for X-editable
javascript library. You can use it to create in-place editable input elements.
You can install the released version of shinyEditable from CRAN with:
## CRAN version not available
or the development version from github with:
devtools::install_github("yang-tang/shinyEditable")
This is a basic example which shows you how to solve a common problem:
library(shiny)
library(shinyEditable)
ui <- fluidPage(
"My name is ", editableInput("name", "text", ""),
hr(),
verbatimTextOutput("bar")
)
server <- function(input, output, session) {
output$bar <- renderPrint({
cat("Name: ", input$name)
})
}
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.