nlines: Counts the number of lines in a file

Description Usage Arguments Value Author(s) Examples

Description

Counts the number of lines in a file

Usage

1

Arguments

file

The file path. This is not using connections, so this expects a character string giving the name of the file

Value

The number of lines of the file

Author(s)

Romain Francois <romain@r-enthusiasts.com>

Examples

1
2
3
4
5
6
## Not run: 
f <- system.file( "grammar.output", package = "parser" )
nlines( f )
length( readLines( f ) )

## End(Not run)

parser documentation built on May 2, 2019, 6:49 p.m.