count_lines_textfile: Count rows in a text file

Description Usage Arguments See Also Examples

View source: R/prepare.R

Description

This is a quick way of counting lines in a text file, to ensure the final # of rows in the loaded dataset is correct: https://stackoverflow.com/questions/23456170/get-the-number-of-lines-in-a-text-file-using-r

Usage

1

Arguments

file_path

character: Path to file

See Also

Other functions for validating license data: check_dups, summary_churn, summary_initial, summary_sale

Examples

1
2
3
4
5
6
x <- matrix(1:10, ncol = 5)
f <- tempfile("test-matrix")
write(x, f)
readLines(f)
count_lines_textfile(f)
unlink(f)

southwick-associates/salic documentation built on Nov. 5, 2019, 9:13 a.m.