R Plik tekstowy całkowitej linii

con <- file("some_file.format") 
length(readLines(con))
Panicky Pony