terminalSend {rstudioapi} | R Documentation |
Send text to an existing terminal.
terminalSend(id, text)
id |
The terminal id. The |
text |
Character vector containing text to be inserted. |
The terminalSend
function was added in version 1.1.350 of
RStudio.
## Not run:
termId <- rstudioapi::terminalCreate()
rstudioapi::terminalSend(termId, 'ls -l\n')
## End(Not run)