forked from Terminus2049/ArchiveTeleBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.R
More file actions
34 lines (23 loc) · 681 Bytes
/
app.R
File metadata and controls
34 lines (23 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
library(shiny)
library(readr)
createLink <- function(link, text) {
paste0('<a href="', link,
'" target="_blank" class="btn btn-primary">', text, '</a>')
}
ui <- function(input, output, session){
navbarPage(
title = 'ArchiveTeleBot',
tabPanel('自动检查(每1h更新一次)',
DT::dataTableOutput("table1")
)
)
}
server <- function(input, output, session) {
archive2 = reactiveFileReader(60000, session, 'archive2.csv', read_csv)
output$table1 <- DT::renderDataTable({
archive2 = archive2()
DT::datatable(archive2, escape = FALSE,
options = list(pageLength = 30))
})
}
shinyApp(ui, server)