Skip to content
Prev 2395 / 12125 Next

[R-pkg-devel] discovering if a function in a package is called under RStudio

Hi,

you can use rstudioapi::isAvailable() for that. There's other packages with
similar functionality (eg the assertive package), and you can always check
whether Sys.getenv("RSTUDIO") == "1".
Cheers
Joris


On Fri, Feb 9, 2018 at 9:09 AM, Georgi Boshnakov <
georgi.boshnakov at manchester.ac.uk> wrote: