callFun | R Documentation |
This function will return an error if RStudio is not running, or the
function is not available. If you want to fall back to different behavior,
use hasFun
.
callFun(fname, ...)
fname |
name of the RStudio function to call. |
... |
Other arguments passed on to the function |
if (rstudioapi::isAvailable()) {
rstudioapi::callFun("versionInfo")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.