nlines {parser}R Documentation

Counts the number of lines in a file

Description

Counts the number of lines in a file

Usage

nlines(file)

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 <francoisromain@free.fr>

Examples

## Not run: 
f <- system.file( "grammar.output", package = "parser" )
nlines( f )
length( readLines( f ) )
## End(Not run)

[Package parser version 0.0-3 Index]