briandconnelly / ami

Checks for Various Computing Environments

Home Page:https://briandconnelly.github.io/ami/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RStudio Jobs Improvements

briandconnelly opened this issue · comments

ami::using_rstudio_jobs() uses rstudioapi::isJob() which is TRUE if the job is in either the foreground or background. While the default behavior could continue to follow this logic, it might be nice to allow users to explicitly check for foreground or background status.

These can be differentiated with rstudioapi::isBackgroundJob() and rstudioapi::isWorkbenchJob()