oceDebug | R Documentation |
Print an indented debugging message.
Many oce functions decrease the debug
level by 1 when they call other
functions, so the effect is a nesting, with more space for deeper function
level.
oceDebug(debug = 0, ..., unindent = 0, sep = "", style = "plain")
debug |
an integer, less than or equal to zero for no message, and greater than zero for increasing levels of debugging. Values greater than 4 are treated like 4. |
... |
items to be supplied to |
unindent |
integer giving the number of levels to un-indent, e.g. for start and end lines from a called function. |
sep |
character to insert between elements of |
style |
either a string or a function. If a string,
it must be If |
Dan Kelley
oceDebug(debug = 1, "Example", 1, "Plain text")
oceDebug(debug = 1, "Example", 2, "Bold", style = "bold")
oceDebug(debug = 1, "Example", 3, "Italic", style = "italic")
oceDebug(debug = 1, "Example", 4, "Red", style = "red")
oceDebug(debug = 1, "Example", 5, "Green", style = "green")
oceDebug(debug = 1, "Example", 6, "Blue", style = "blue")
mycyan <- function(...) paste("\033[36m", paste(..., sep = " "), "\033[0m", sep = "")
oceDebug(debug = 1, "Example", 7, "User-set cyan", style = mycyan)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.