有对Web应用程序进行日历很多JS库。
如何使标签在日期谷歌日历的R闪亮应用优雅的日历解决方案是怎样的?
谢谢!
看一看在fullcalendar包在github上,或者你可以Add a Google calendar to your website
library(shiny)
library(fullcalendar)
data = data.frame(title = paste("Event"[![enter image description here][2]][2], 1:3),
start = c("2017-03-01", "2017-03-01", "2017-03-15"),
end = c("2017-03-02", "2017-03-04", "2017-03-18"),
color = c("red", "blue", "green"))
ui <- fluidPage(
column(6,
fullcalendarOutput("calendar", width = "100%", height = "200px")
)
)
server <- function(input, output) {
output$calendar <- renderFullcalendar({
fullcalendar(data)
})
}
shinyApp(ui, server)