save_print: Capture output from 'print()' of an object.

save_printR Documentation

Capture output from print() of an object.

Description

Capture output from print() of an object.

Usage

save_print(object, collapse = "\n")

save_object_info(object)

Arguments

object

An object to be printed.

collapse

A character scalar: used to collapse the output lines.

Value

A character scalar for save_print(), list(str = save_print(object), dim = dim(object)) for save_object_info().

Examples

save_print(lm(mpg ~ cyl, datasets::mtcars))

bioinfocz/scdrake documentation built on Sept. 19, 2024, 4:43 p.m.