Send code to the R console and optionally execute it.
sendToConsole(code, execute = TRUE)
Character vector containing code to be executed.
TRUE to execute the code immediately.
The sendToConsole function was added in version 0.99.787 of RStudio.
## Not run:
rstudioapi::sendToConsole(".Platform", execute = TRUE)
## End(Not run)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.