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)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.