Send code to the R console and optionally execute it.
sendToConsole(code, execute = TRUE, echo = TRUE, focus = TRUE)
code | Character vector containing code to be executed. |
---|---|
execute | Boolean; execute the code immediately or just enter the text into the console? |
echo | Boolean; echo the R code in the console as it's executed? |
focus | Boolean; focus the R console after sending code? |
The sendToConsole
function was added in version 0.99.787 of RStudio.