powered by
Clears the buffer for specified terminal.
terminalClear(id)
The terminal id. The id is obtained from terminalList(), terminalVisible(), terminalCreate(), or terminalExecute().
id
terminalList()
terminalVisible()
terminalCreate()
terminalExecute()
# NOT RUN { termId <- rstudioapi::terminalCreate() rstudioapi::terminalSend(termId, 'ls -l\n') Sys.sleep(3) rstudioapi::terminalClear(termId) # } # NOT RUN { # }
Run the code above in your browser using DataLab