sendToConsole: Send Code to the R Console

Description Usage Arguments Note Examples

Description

Send code to the R console and optionally execute it.

Usage

1
sendToConsole(code, execute = TRUE)

Arguments

code

Character vector containing code to be executed.

execute

TRUE to execute the code immediately.

Note

The sendToConsole function was added in version 0.99.787 of RStudio.

Examples

1
2
3
4
## Not run: 
rstudioapi::sendToConsole(".Platform", execute = TRUE)

## End(Not run)


Search within the rstudioapi package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@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.