more: Prints one or more objects to the standard output

Description Usage Arguments Author(s) See Also Examples

Description

Prints one or more objects or the contents of a file to the standard output. If not all of the output fits the console window, a prompt will be displayed. Valid entries in this prompt are: (1) B and [ENTER] for previous and next page, respectively; (2) P and N for previous and next line, respectively; (3) Q for quit; and (4) H or ? for help. In addition to these for options entering an integer value will print the contents starting from the line with the entered number.

Usage

1
2
3
4
## Default S3 method:
more(..., file, height=getTerminalInfo(rows = getOption("height"))$rows,
  width=getTerminalInfo(columns = getOption("width"))$columns, line.numbers=FALSE,
  auto.refresh=TRUE)

Arguments

...

Comma-separated list of things to be displayed.

file

File to be displayed.

height

The height of the console window.

width

The width of the console window. Default value is options("width"). Currently this argument has no effect on the result.

line.numbers

If TRUE, each line is preceeded with a line number, otherwise just the contents is printed.

auto.refresh

If TRUE, the display is refreshed after prompting the user, otherwise not.

Either ... or file must be specified.

Author(s)

Henrik Bengtsson

See Also

head(), tail(), sink().

Examples

1
2
3
4
5
6
 ## Not run: 
  more(more.default)
  more(system("ls -l", intern=TRUE))
  more(file=paste(.path.package("base"), "/CONTENTS", sep=""))
 
## End(Not run)

HenrikBengtsson/R.basic documentation built on May 6, 2019, 11:51 p.m.