Is there a way to get the number of lines in a file without importing it?
So far this is what I am doing
myfiles <- list.files(pattern=\"*.dat\")
I found this easy way using R.utils package
library(R.utils) sapply(myfiles,countLines)
here is how it works