Rev 11368 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{file.show}\alias{file.show}\title{Display One or More Files}\usage{file.show(\dots, header, title="R Information",delete.file=FALSE, pager=getOption("pager"))}\arguments{\item{\dots}{one or more character vectors containing the names of thefiles to be displayed.}\item{header}{vector (of the same length as the number of filesspecified in \code{\dots}) giving a header for each file beingdisplayed. Defaults to empty strings.}\item{title}{an overall title for the display. If a separate windowis used for the display, \code{title} will be used as thewindow title.}\item{delete.file}{should the files be deleted after display? Used fortemporary files.}\item{pager}{the pager to be used.}}\description{This function provides the core of the R help system,but it can be used for other purposes as well.}\note{How the pager is implemented is system dependent.The basic Unix version concatentates files and displays them in the pagerselected by the \code{pager} argument, which is a character vectorspecifying a system command to run on the set of files. GUI models willallow special pagers which for instance couldput up a file in a separatewindow and let the user leave it up while \R continues running. Theselection of such pagers could either be done using ``magic'' pagernames being intercepted by lower-level code, or by letting \code{pager}be an R function which will be called with the same arguments as\code{file.show} and take care of interfacing to the GUI.}\author{Ross Ihaka, Brian Ripley.}\seealso{\code{\link{files}},\code{\link{list.files}},\code{\link{help}}.}\examples{file.show(paste(R.home(),"COPYRIGHTS", sep=.Platform$file.sep))}\keyword{file}