I have some content (written in the R language) deployed to an RStudio Connect instance.
I would like to be able to do something like:
if (isTRUE(is_connect)) {
print("Running on Connect")
} else {
print("Not running on Connect")
}
That is, I'd like to have my code detect whether it is running from RStudio Connect or not, and behave differently depending on its environment.
How can I detect, using R code, whether it is running on RStudio Connect?