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)
}

Try the quincunx package in your browser

Any scripts or data that you put into this service are public.

quincunx documentation built on July 9, 2023, 7:32 p.m.