Capture contents of a pane.
capture_pane(target, start = NULL, end = NULL, trim = FALSE,
trim_top = trim, trim_bottom = trim, strip_lonely_prompt = TRUE,
as_message = FALSE, in_viewer = FALSE)
A session, window, or pane.
Numeric. First line to capture.
Numeric. Last line to capture.
Logical. Should empty lines be removed from the top and bottom?
Logical. Should empty lines be removed from the top?
Logical. Should empty lines be removed from the bottom?
Logical. Should lines containing only the prompt be removed?
Logical. Should the contents be displayed as a message?
Logical. Should the contents be displayed in the viewer?