sendToConsole: Send Code to the R Console

Description Usage Arguments Note Examples

View source: R/stubs.R

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)

rstudioapi documentation built on May 20, 2017, 4:34 a.m.

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.