R/read_file_column_names.R

Defines functions read_file_column_names

read_file_column_names <- function(file) {

  tbl <- vroom::vroom(file,
               comment = '#',
               col_types = vroom::cols(.default = "c"),
               col_names = FALSE,
               n_max = 1L)
  unlist(tbl[1, ], use.names = FALSE)
}
ramiromagno/quincunx documentation built on June 2, 2025, 1:23 a.m.