# NOT RUN {
# We are going to log things below
logging_was_enabled <- orderly::orderly_log_on()
# About orderly log messages:
# Orderly log messages have the form "[title] message"
orderly::orderly_log_on()
orderly::orderly_log("title", "message")
# If logging is disabled they are not printed:
orderly::orderly_log_off()
orderly::orderly_log("title", "message")
# Restore to previous settings:
if (logging_was_enabled) {
orderly::orderly_log_on()
}
# }
Run the code above in your browser using DataLab