posit-dev / posit-dev/connectapi
RSTUDIO_PRODUCT is deprecated; support POSIT_PRODUCT
@mconflitti-pbc is already working on this.
Since Feb 24, 2025.
- Dominant language
- R
- Stars
- 54
- Forks
- 27
- Avg merge
- 1d 3m
- Merged PRs (30d)
- 1
Description
This calls for helper(s) to determine which environment is being used. For example:
connectapi::is_running_on_connect()connectapi::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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.