repr: Python-like Representation of Objects as Strings

View source: R/utils-pprint-repr.R

reprR Documentation

Python-like Representation of Objects as Strings

Description

This is an R implementation of python's repr() function. All objects will have a default repr that uses its print method. This is important because the pprint() function will always be able to give a repr-esque output of any object.

Usage

repr(x, indent = 0L, ...)

Arguments

x

Object to represent

indent

Indentation level (number of spaces)

...

Additional arguments passed to methods

Value

A character vector of class c("repr_output", "character"), each element is a line


einops documentation built on Sept. 9, 2025, 5:29 p.m.