file.show
Display Files

Description

Displays one or more files. The function page() is used to display the files.

Usage

file.show(..., header = rep("", nfiles), title = "R Information", 
    delete.file = FALSE, pager = getOption("pager"), encoding = "") 

Arguments

... the character vectors containing the names of files to display.
header a character vector containing a header for each file in .... The length of this vector should equal the number files being displayed.
title a character string to be used as the overall title. The default is "R Information."
delete.file a logical value. If TRUE, then delete all files after displaying them. The default value is FALSE.
pager A string or function specifying how to display the file.

If a function, it should have arguments files, header, title, and delete.file and it should display the files along with the header and title information and, if requested, delete them after they are displayed..

If a string it should be "internal", which means to use a simple paging function.

Details

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.
Value
returns the value returned by the call to page(), which is the exit status of the pager.
Side Effects
Files included in the ... arguments are deleted after being displayed if delete.file=TRUE.
See Also
page, file.exists, file.append.
Examples
# display the default list of package repositories
files <- file.path(R.home("etc"), "repositories")
file.show(files)
Package base version 6.0.0-69
Package Index