umx (version 4.0.0)

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

Other Miscellaneous Utility Functions: install.OpenMx(), qm(), umxBrownie(), umxLav2RAM(), umxRAM2Lav(), umxVersion(), umx_array_shift(), umx_find_object(), umx_open_CRAN_page(), umx_pad(), umx_print(), umx_score_scale(), 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 DataCamp Workspace