more {Smisc} | R Documentation |
Display the contents of a text file to the R console
more(file, n = -1, display = c("all", "head", "tail"))
file |
Text string giving the file name |
n |
Integer specifying the maximum number of lines to read from the file. This is passed
to the |
display |
Text string that uniquely identifies one of |
Returns nothing, but it does display the contents of the file on the R console.
Landon Sego
cat("Here's a file\n", "with a few lines\n", "to read.\n", sep = "", file = "tmpFile.txt") more("tmpFile.txt") unlink("tmpFile.txt")