Ifeanyi commited on
Commit
0d572ed
·
verified ·
1 Parent(s): 63b8b09

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -8
app.R CHANGED
@@ -159,23 +159,19 @@ output$table <- renderReactable({
159
  # activate download buttons
160
  output$down_nodes <- downloadHandler(
161
  filename = function() {
162
- paste("Nodes.csv.gz", sep = "")
163
  },
164
  content = function(file) {
165
- gzfile_conn <- gzfile(file, "w") # compress file for faster download
166
- fwrite(nodes_df(), gzfile_conn)
167
- close(gzfile_conn)
168
  }
169
  )
170
 
171
  output$down_edges <- downloadHandler(
172
  filename = function() {
173
- paste("Edges.csv.gz", sep = "")
174
  },
175
  content = function(file) {
176
- gzfile_conn <- gzfile(file, "w") # compress file for faster download
177
- fwrite(edges_df(), gzfile_conn)
178
- close(gzfile_conn)
179
  }
180
  )
181
 
 
159
  # activate download buttons
160
  output$down_nodes <- downloadHandler(
161
  filename = function() {
162
+ paste("Nodes.csv", sep = "")
163
  },
164
  content = function(file) {
165
+ fwrite(nodes_df(),file)
 
 
166
  }
167
  )
168
 
169
  output$down_edges <- downloadHandler(
170
  filename = function() {
171
+ paste("Edges.csv", sep = "")
172
  },
173
  content = function(file) {
174
+ fwrite(edges_df(), file)
 
 
175
  }
176
  )
177