powered by
Send code to the R console and optionally execute it.
sendToConsole(code, execute = TRUE, echo = TRUE, focus = TRUE)
Character vector containing code to be executed.
Boolean; execute the code immediately or just enter the text into the console?
Boolean; echo the R code in the console as it's executed?
Boolean; focus the R console after sending code?
# NOT RUN { rstudioapi::sendToConsole(".Platform", execute = TRUE) # } # NOT RUN { # }
Run the code above in your browser using DataLab