sendToConsole | R Documentation |
Send code to the R console, and optionally execute it.
sendToConsole(code, execute = TRUE, echo = TRUE, focus = TRUE, animate = FALSE)
code |
The R code to be executed, as a character vector. |
execute |
Boolean; should the code be executed after being submitted
to the console? If |
echo |
Boolean; echo the code in the console as it is executed? |
focus |
Boolean; focus the console after sending code? |
animate |
Boolean; should the submitted code be animated, as if someone was typing it? |
The sendToConsole
function was added in version 0.99.787 of
RStudio.
## Not run:
rstudioapi::sendToConsole(".Platform", execute = FALSE, animate = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.