terminalClear | R Documentation |
Clears the buffer for specified terminal.
terminalClear(id)
id |
The terminal id. The |
The terminalClear
function was added in version 1.1.350 of
RStudio.
## Not run:
termId <- rstudioapi::terminalCreate()
rstudioapi::terminalSend(termId, 'ls -l\n')
Sys.sleep(3)
rstudioapi::terminalClear(termId)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.