posit-dev / posit-dev/connectapi

RSTUDIO_PRODUCT is deprecated; support POSIT_PRODUCT

Open
#371 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.