terminalSend {rstudioapi} | R Documentation |
Send Text to a Terminal
Description
Send text to an existing terminal.
Usage
terminalSend(id, text)
Arguments
id |
The terminal id. The |
text |
Character vector containing text to be inserted. |
Note
The terminalSend
function was added in version 1.1.350 of
RStudio.
Examples
## Not run:
termId <- rstudioapi::terminalCreate()
rstudioapi::terminalSend(termId, 'ls -l\n')
## End(Not run)
[Package rstudioapi version 0.16.0 Index]