powered by
Send text to an existing terminal.
terminalSend(id, text)
The terminal id. The id is obtained from terminalList(), terminalVisible(), terminalCreate(), or terminalExecute().
id
terminalList()
terminalVisible()
terminalCreate()
terminalExecute()
Character vector containing text to be inserted.
if (FALSE) { termId <- rstudioapi::terminalCreate() rstudioapi::terminalSend(termId, 'ls -l\n') }
Run the code above in your browser using DataLab