Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -10,7 +10,7 @@ library(dplyr)
|
|
| 10 |
library(reactable)
|
| 11 |
library(reactablefmtr)
|
| 12 |
|
| 13 |
-
options(sass.cache =
|
| 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 |
-
|
| 124 |
edges_dataset <- reactiveVal(NULL)
|
| 125 |
edges_disp_dataset <- reactiveVal(NULL)
|
| 126 |
|
| 127 |
observeEvent(input$search, {
|
| 128 |
# compute once and cache
|
| 129 |
-
|
| 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(
|
| 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 |
)
|