dput_pretty: Pretty Printing of R Objects (pretty_dput)

dput_prettyR Documentation

Pretty Printing of R Objects (pretty_dput)

Description

This function modifies the output of the traditional dput() function so that each key-value pair in a vector appears on a new line. It's useful for creating more readable output.

Usage

dput_pretty(vec)

Arguments

vec

A named vector to be printed. The vector should be in the form c('name' = 'value').

Value

No return value. Outputs the vector with each element on a new line.

Examples

vec <- c(`0` = "ACyte", `1` = "Misp.1.DCN")
pretty_dput(vec)


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.