getLines function

read lines as needed

read lines as needed

Functions that take file and lines arguments can use this function to derive lines no matter what was provided.

getLines( file, lines, linesep = "\n", simplify = TRUE, col.model, modelname, as.one )

Arguments

  • as.one: If the file argument is used and if as.one is TRUE, the file(s) are read and put into a data.table with a model column and a text column. Default is FALSE. Be careful with this, as it returns different formats whether the file or the lines argument is used.
  • Maintainer: Philip Delff
  • License: MIT + file LICENSE
  • Last published: 2025-03-21