page()
is used
to display the files.
file.show(..., header="", title="Splus Information", delete.file=FALSE, pager=options("pager"))
...
.
The length of this vector should equal the number files being displayed.
options("pager")
.
The pager must be a program that can accept a file name as an argument.
For more information, see the help file for
.
page()
which is the exit status of the pager.
...
arguments will
be deleted after being displayed if
delete.file=TRUE
.
This function displays the concatenation of the specified files with
an optional header shown at the beginning of a file. This function is very
similar to the
page
function, but it allows
multiple files to be displayed.
This function emulates the R function
file.show
.
files <- c(file.path(getenv("SHOME"), c("Copyright", "VERSION"))) file.show(files, header = c("--- S-PLUS Copyright ---", "--- S-PLUS VERSION ---"), pager="cat")
cat(file="LETTERS.txt", LETTERS, fill=40) cat(file="letters.txt", letters, fill=40) file.show("LETTERS.txt", "letters.txt", header = c("UPPERCASE", "lowercase")) file.show("LETTERS.txt", "letters.txt", header = c("UPPERCASE", "lowercase"), pager = "od --format xz") file.remove("LETTERS.txt", "letters.txt")