Use this function to detect whether RStudio is running an R "job".
These jobs are normally used for actions taken in the Jobs tab, as well
as within the R build pane.
Usage
isJob()
Arguments
Value
Boolean; TRUE if this is an RStudio job.
Details
This function is primarily intended to be used by package authors, who
need to customize the behavior of their methods when run within an
RStudio job.