Rev 26532 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{file.show}\alias{file.show}\title{Display One or More Files}\description{Display one or more files.}\usage{file.show(\dots, header = rep("",nfiles), 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}{character 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 single separatewindow is used for the display, \code{title} will be used as the windowtitle. If multiple windows are used, their titles should combine the titleand the file-specific header.}\item{delete.file}{should the files be deleted after display? Usedfor temporary files.}\item{pager}{the pager to be used.}}\details{This function provides the core of the R help system, but it can beused for other purposes as well.}\note{How the pager is implemented is highly system dependent.The basic Unix version concatenates the files (using the headers) to atemporary file, and displays it in thepager selected by the \code{pager} argument, which is a charactervector specifying a system command to run on the set of files.Most GUI systems will use a separate pager window for each file,and let the user leave it up while \Rcontinues running. The selection of such pagers could either be doneusing \dQuote{magic} pager names being intercepted by lower-level code(such as \code{"internal"} and \code{"console"} on Windows), orby letting \code{pager} be an R function which will be called with thesame arguments as \code{file.show} and take care of interfacing to theGUI.Not all implementations will honour \code{delete.file}.#ifdef windowsIn particular, using an external pager on Windows does not, as thereis no way to know when the external application has finished withthe file.#endif}\author{Ross Ihaka, Brian Ripley.}\seealso{\code{\link{files}},\code{\link{list.files}},\code{\link{help}}.}\examples{file.show(file.path(R.home(), "COPYRIGHTS"))}\keyword{file}