disp: Print the name and value of a variable in a function

View source: R/disp.R

dispR Documentation

Print the name and value of a variable in a function

Description

Useful for debugging as a substitute for printing the value of a variable in a function. It also prints the name of the variable.

Usage

disp(x, head = deparse(substitute(x)))

Arguments

x

value to print

head

(default: deparse(substitute(x))) heading preceding printed value

Details

Prints object if options(verbose=TRUE)


gmonette/spida2 documentation built on July 14, 2024, 12:45 p.m.