| umx_msg | R Documentation |
A highly utilitarian function for rapid inline debugging. umx_msg safely captures
the name of a variable (or expression) and prints its contents to the console via
message() (stderr), before invisibly returning the original object.
umx_msg(x)
x |
An object, variable, or inline expression to be debug-printed. |
Because the return is invisible, you can wrap umx_msg around live assignments
or pipeline stages without breaking the logic. It safely handles NULL values,
multi-line expressions, and cleanly formats complex structures like data frames.
Invisibly returns x (allowing inline pass-through).
https://tbates.github.io, https://github.com/tbates/umx
Other Miscellaneous Utility Functions:
install.OpenMx(),
libs(),
qm(),
umx,
umxLav2RAM(),
umxModelNames(),
umxRAM2Lav(),
umxVersion(),
umx_ICA_report(),
umx_array_shift(),
umx_data(),
umx_find_object(),
umx_lower.tri(),
umx_open_CRAN_page(),
umx_pad(),
umx_print(),
umx_tail(),
umx_wide2long(),
umx_wide4lmer()
a = "brian"
umx_msg(a)
# Can be used inline without breaking assignment
a = umx_msg(mtcars[1,2]^2)
b = c("brian", "sally", "jane")
umx_msg(b)
# Safely handles missing data
umx_msg(NULL)
# Cleanly routes dataframe structures to stderr
umx_msg(mtcars[1:2, 1:3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.