It uses powershell (currently a Windows function only)

file_tail(file_path, n = 10, one_string = TRUE)

Arguments

file_path

file path (character)

n

number of lines (integer)

one_string

logical, if TRUE (default) it collapses all lines in a singe string

Value

a character vector (length n; if one_string = TRUE, length 1)