-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.R
57 lines (39 loc) · 1.06 KB
/
server.R
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
library(shiny)
library(DT)
library(readr)
files_check <- list(0, 0, 0, 0)
# length(x[x==1]) == 4
shinyServer(
function(input, output){
output$fts <- renderDataTable({
fts_file_path <- input$fts_file_info$datapath
if(is.null(fts_file_path)){
files_check[1] <- 0
return(NULL)
}
else{
files_check[1] <- 1
}
print(files_check)
read_csv(fts_file_path)
})
output$stf <- renderDataTable({
stf_file_path <- input$stf_file_info$datapath
if(is.null(stf_file_path))
return(NULL)
read_csv(stf_file_path)
})
output$count <- renderDataTable({
count_file_path <- input$count_file_info$datapath
if(is.null(count_file_path))
return(NULL)
read_csv(count_file_path)
})
output$sheet <- renderDataTable({
sheet_file_path <- input$sheet_file_info$datapath
if(is.null(sheet_file_path))
return(NULL)
read_csv(sheet_file_path)
})
}
)