deparse: A nicer deparse

Description Usage Arguments

View source: R/dp.R

Description

deparse is a reimplementation of dput and related functions. It tries its best to produce output that is easy to read (for humans), yet produces (almost) identical results to the input (for machines). This function is a generic, so other packages can easily provide implementations for the objects they define.

The deparsec function leverages deparse by creating a call object which can be evaluated but retains formatting (in the form of a srcref attribute).

Usage

1
2
3

Arguments

x

object to deparse

...

passed to other methods


krlmlr/lave documentation built on May 20, 2019, 6:17 p.m.