Display one or more (plain) text files, in a platform specific way, typically via a ‘pager’.
file.show(…, header = rep("", nfiles),
title = "R Information",
delete.file = FALSE, pager = getOption("pager"),
encoding = "")
| Parameter | Description |
|---|---|
… |
one or more character vectors containing the names of the files to be displayed. Paths with have tilde expansion. |
header |
character vector (of the same length as the number of files specified in …) giving a header for each file being displayed. Defaults to empty strings. |
title |
an overall title for the display. If a single separate window is used for the display, title will be used as the window title. If multiple windows are used, their titles should combine the title and the file-specific header. |
delete.file |
should the files be deleted after display? Used for temporary files. |
pager |
the pager to be used: not used on all platforms |
encoding |
character string giving the encoding to be assumed for the file(s). |
# NOT RUN {
file.show(file.path(R.home("doc"), "COPYRIGHTS"))
# }