print the last n lines of a file.
n
peek_tail(path, n = 10, intern = FALSE)
file path
number of lines to print
a logical which indicates whether to capture the output as an R character vector or to print the output in the R console.
# NOT RUN { f <- system.file(package = "fpeek", "datafiles", "cigfou-ISO-8859-1.txt") peek_tail(f, n = 4) peek_tail(f, n = 4, intern = TRUE) # }
Run the code above in your browser using DataLab