Send Text to a Terminal
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.