| log_view | R Documentation |
A scrolling log for long-running work. write() appends lines with a
level ("debug", "info", "success", "warning", "error", shown
in different colours). Only the last max_lines lines are kept, so
memory stays bounded. While the view is scrolled to the end it follows
new lines; scroll up (keys or wheel) to read older lines, or pause().
log_view(
max_lines = 1000L,
timestamps = FALSE,
auto_scroll = TRUE,
id = NULL,
classes = NULL,
style = NULL
)
max_lines |
Number of lines kept. |
timestamps |
Prefix lines with |
auto_scroll |
Follow new lines? |
id |
Optional identifier. |
classes |
Optional classes. |
style |
A |
A LogView widget with methods write(), clear(),
pause(), resume().
logs <- log_view(max_lines = 500, id = "log")
logs$write("Starting model...")
logs$write("Convergence is slow", level = "warning")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.