| addItem | R Documentation | 
Add a single item to a timeline
addItem(id, data)
| id | Timeline id or a  | 
| data | A named list containing the item data to add. | 
## Not run: 
timevis() %>%
  addItem(list(start = Sys.Date(), content = "Today"))
## End(Not run)
if (interactive()) {
library(shiny)
shinyApp(
  ui = fluidPage(
    timevisOutput("timeline"),
    actionButton("btn", "Add item today")
  ),
  server = function(input, output) {
    output$timeline <- renderTimevis(
      timevis()
    )
    observeEvent(input$btn, {
      addItem("timeline", list(start = Sys.Date(), content = "Today"))
    })
  }
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.