powered by
Send code to the R console, and optionally execute it.
sendToConsole(code, execute = TRUE, echo = TRUE, focus = TRUE)
The R code to be executed, as a character vector.
Boolean; execute the code immediately or just enter the text into the console?
Boolean; echo the code in the console as it is executed?
Boolean; focus the console after sending code?
if (FALSE) { rstudioapi::sendToConsole(".Platform", execute = TRUE) }
Run the code above in your browser using DataLab