Send code to the R console
Send code to the R console, and optionally execute it.
sendToConsole(code, execute = TRUE, echo = TRUE, focus = TRUE)
code |
The R code to be executed, as a character vector. |
execute |
Boolean; execute the code immediately or just enter the text into the console? |
echo |
Boolean; echo the code in the console as it is executed? |
focus |
Boolean; focus the console after sending code? |
The sendToConsole
function was added in version 0.99.787 of
RStudio.
## Not run: rstudioapi::sendToConsole(".Platform", execute = TRUE) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.