posit-dev / posit-dev/positron

Variables View: Provide UI for evaluating Promises

Open
#419 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: variables
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

R has objects called "promises", which are effectively objects which are evaluated only on first use. In RStudio, we display them like so:

Screenshot 2023-04-12 at 9 59 26 AM

We also allow users to click on a promise to "force" it, and replace it with the underlying evaluated value. We may want to consider a similar feature for Positron.

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.

Research direction

Start by reviewing the Variables View and the RStudio behavior shown in the issue. Determine how Positron represents R promises and define the interaction for forcing one; done when a promise can be evaluated from the Variables View and its resulting value is displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.