Learn R Programming

umx (version 1.9.1)

umx_msg: Print the name and compact contents of variable.

Description

Helper function to make dumping "ObjectName has the value: <objectvalue>" easy. This is primarily useful for inline debugging, where seeing "nVar = NULL" can be useful, and the code umxMsg(nVar) makes this easy.

Usage

umx_msg(x)

Arguments

x

the thing you want to pretty-print

Value

- NULL

References

- http://tbates.github.io, https://github.com/tbates/umx

See Also

Other Utility Functions: qm, umx_find_object, umx_names, umx_paste_names, umx_pb_note, umx_print, umx_rename, umx

Examples

Run this code
# NOT RUN {
a = "brian"
umx_msg(a)
b = c("brian", "sally", "jane")
umx_msg(b)
umx_msg(mtcars)
# }

Run the code above in your browser using DataLab