Check if RStudio is running.
1 2 3
An optional version specification. If supplied, ensures that RStudio is at least that version.
Boolean; check if the current R process is a child process of
the main RStudio session? This can be useful for e.g. RStudio Jobs, where
you'd like to communicate back with the main R session from a child process
isAvailable a boolean;
verifyAvailable an error message
if RStudio is not running
rstudioapi::isAvailable() ## Not run: rstudioapi::verifyAvailable()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.