powered by
Returns information about RStudio terminal instances.
terminalContext(id)
A list with elements:
list
handle
caption
title
working_dir
shell
running
busy
exit_code
connection
sequence
lines
cols
rows
pid
full_screen
The terminal id. The id is obtained from terminalList(), terminalVisible(), terminalCreate(), or terminalExecute().
id
terminalList()
terminalVisible()
terminalCreate()
terminalExecute()
if (FALSE) { termId <- rstudioapi::terminalCreate("example", show = FALSE) View(rstudioapi::terminalContext(termId)) }
Run the code above in your browser using DataLab