Skip to content

Commit

Permalink
Merge pull request #163 from Sage-Bionetworks/patch-fread
Browse files Browse the repository at this point in the history
force first line to be header
  • Loading branch information
kelshmo authored Aug 25, 2021
2 parents ea37c11 + af245b5 commit d0a5a64
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@
#'
#'}
get_data <- function(synid, version = NULL) {
df <- tibble::as_tibble(data.table::fread(synapser::synGet(synid,
version = as.numeric(version)
)$path))
df <- tibble::as_tibble(
data.table::fread(
synapser::synGet(
synid,
version = as.numeric(version)
)$path,
header = TRUE
)
)
df
}
#' Create complete URL to Synapse entity
Expand Down

0 comments on commit d0a5a64

Please sign in to comment.