Learn R Programming

fpeek (version 0.2.0)

peek_tail: print the last lines of files

Description

print the last n lines of a file.

Usage

peek_tail(path, n = 10, intern = FALSE)

Arguments

path

file path

n

number of lines to print

intern

a logical which indicates whether to capture the output as an R character vector or to print the output in the R console.

Examples

Run this code
f <- system.file(package = "fpeek",
  "datafiles", "test-tab.csv")
peek_tail(f, n = 4)
peek_tail(f, n = 4, intern = TRUE)

Run the code above in your browser using DataLab