OwenStOnge commited on
Commit
1606389
·
verified ·
1 Parent(s): b3461e5

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +3 -1
app.R CHANGED
@@ -1963,7 +1963,9 @@ observe({
1963
  )
1964
 
1965
  if (httr::status_code(file_resp) == 200) {
1966
- read.csv(text = httr::content(file_resp, as = "text", encoding = "UTF-8"))
 
 
1967
  } else {
1968
  NULL
1969
  }
 
1963
  )
1964
 
1965
  if (httr::status_code(file_resp) == 200) {
1966
+ tmp <- tempfile(fileext = ".csv.gz")
1967
+ writeBin(httr::content(file_resp, as = "raw"), tmp)
1968
+ read.csv(gzfile(tmp))
1969
  } else {
1970
  NULL
1971
  }