Ifeanyi commited on
Commit
e8f4a55
·
verified ·
1 Parent(s): 2491010

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -4
app.R CHANGED
@@ -10,7 +10,7 @@ library(dplyr)
10
  library(reactable)
11
  library(reactablefmtr)
12
 
13
- options(sass.cache = tempdir())
14
 
15
  my_theme <- bs_theme(
16
  bg = "#fdfefe",
@@ -120,13 +120,13 @@ authorEdges <- reactive({authorPubEdges(
120
  # })
121
 
122
  # pass search output to nodes and edges
123
- node_dataset <- reactiveVal(NULL)
124
  edges_dataset <- reactiveVal(NULL)
125
  edges_disp_dataset <- reactiveVal(NULL)
126
 
127
  observeEvent(input$search, {
128
  # compute once and cache
129
- node_dataset(authorNodes())
130
  edges_dataset(authorEdges())
131
  edges_disp_dataset(authorEdgesDisp())
132
  })
@@ -164,7 +164,7 @@ output$down_nodes <- downloadHandler(
164
  paste("Nodes.csv", sep = "")
165
  },
166
  content = function(file) {
167
- req(node_dataset())
168
  fwrite(nodes_dataset(),file)
169
  }
170
  )
 
10
  library(reactable)
11
  library(reactablefmtr)
12
 
13
+ options(sass.cache = FALSE)
14
 
15
  my_theme <- bs_theme(
16
  bg = "#fdfefe",
 
120
  # })
121
 
122
  # pass search output to nodes and edges
123
+ nodes_dataset <- reactiveVal(NULL)
124
  edges_dataset <- reactiveVal(NULL)
125
  edges_disp_dataset <- reactiveVal(NULL)
126
 
127
  observeEvent(input$search, {
128
  # compute once and cache
129
+ nodes_dataset(authorNodes())
130
  edges_dataset(authorEdges())
131
  edges_disp_dataset(authorEdgesDisp())
132
  })
 
164
  paste("Nodes.csv", sep = "")
165
  },
166
  content = function(file) {
167
+ req(nodes_dataset())
168
  fwrite(nodes_dataset(),file)
169
  }
170
  )