Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

umx_msg

Print the name and compact contents of variable.


Description

Helper function to ease debugging with console notes like: "ObjectName = \<Object Value\>". This is primarily useful for inline debugging, where seeing, e.g., "nVar = 3" can be useful. The ability to say umx_msg(nVar) makes this easy.

Usage

umx_msg(x)

Arguments

x

the thing you want to pretty-print

Value

  • NULL

References

See Also

Examples

a = "brian"
umx_msg(a)
b = c("brian", "sally", "jane")
umx_msg(b)
umx_msg(mtcars)

umx

Structural Equation Modeling and Twin Modeling in R

v4.10.10
GPL-3
Authors
Timothy C. Bates [aut, cre] (<https://orcid.org/0000-0002-1153-9007>), Gillespie Nathan [wit], Michael Zakharin [wit], Brenton Wiernik [ctb], Joshua N. Pritikin [ctb], Michael C. Neale [ctb], Hermine Maes [ctb]
Initial release
2021-11-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.