stat-utas commited on
Commit
af2adae
·
verified ·
1 Parent(s): 3866dd9

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +3 -3
app.R CHANGED
@@ -22,7 +22,7 @@ ui <- fluidPage(
22
  server <- function(input, output, session) {
23
  observeEvent(input$save_btn, {
24
  text <- input$input_text
25
- file <- "/data/input_texts.xlsx"
26
 
27
  if (file.exists(file)) {
28
  data <- read.xlsx(file, sheet = 1)
@@ -38,7 +38,7 @@ server <- function(input, output, session) {
38
  })
39
 
40
  observeEvent(input$clear_btn, {
41
- file <- "/data/input_texts.xlsx"
42
  if (file.exists(file)) {
43
  file.remove(file)
44
  }
@@ -47,7 +47,7 @@ server <- function(input, output, session) {
47
  })
48
 
49
  updateTableOutput <- function() {
50
- file <- "/data/input_texts.xlsx"
51
 
52
  if (file.exists(file)) {
53
  data <- read.xlsx(file, sheet = 1)
 
22
  server <- function(input, output, session) {
23
  observeEvent(input$save_btn, {
24
  text <- input$input_text
25
+ file <- "/srv/shiny-server/data/input_texts.xlsx"
26
 
27
  if (file.exists(file)) {
28
  data <- read.xlsx(file, sheet = 1)
 
38
  })
39
 
40
  observeEvent(input$clear_btn, {
41
+ file <- "/srv/shiny-server/data/input_texts.xlsx"
42
  if (file.exists(file)) {
43
  file.remove(file)
44
  }
 
47
  })
48
 
49
  updateTableOutput <- function() {
50
+ file <- "/srv/shiny-server/data/input_texts.xlsx"
51
 
52
  if (file.exists(file)) {
53
  data <- read.xlsx(file, sheet = 1)