Learn R Programming

rstudioapi (version 0.15.0)

terminalSend: Send Text to a Terminal

Description

Send text to an existing terminal.

Usage

terminalSend(id, text)

Arguments

id

The terminal id. The id is obtained from terminalList(), terminalVisible(), terminalCreate(), or terminalExecute().

text

Character vector containing text to be inserted.

Examples

Run this code

if (FALSE) {
termId <- rstudioapi::terminalCreate()
rstudioapi::terminalSend(termId, 'ls -l\n')
}


Run the code above in your browser using DataLab