Skip to contents

Same as print, but adds a specified amount of white space at the start of each printed line

Usage

indentPrint(object, indent = 4, ...)

Arguments

object

any printable object

indent

a non-negative integer, the number of spaces to insert

...

other arguments to pass to print

Value

object is returned invisibly

Author

David Firth, d.firth@warwick.ac.uk

Examples


indentPrint("this indented by 10 spaces", indent=10)
#>           [1] "this indented by 10 spaces"