terminalSend | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.