Open
Description
This calls for helper(s) to determine which environment is being used. For example:
client.is_running_on_connect()
client.is_running_on_workbench()
or something similar to encapsulate the check.
Need to check both RSTUDIO_PRODUCT
and POSIT_PRODUCT
since older versions of connect and workbench will not have the latter set, but when it is set, they will be the same value. RSTUDIO_PRODUCT has not yet been removed, only deprecated for now.
Once merged, ensure that any documentation examples in our products use these helpers for the latest version of this utility. Add fallback note if not on version that includes these helpers.