posit-dev / posit-dev/positron
ark: support completion for ggplot2 aesthetics
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 183
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
Thomas Pedersen [2:22 AM]
Would it be possible to get argument suggestions in a function that only takes ... based on the context it is called in?Kevin Ushey [9:49 AM]
Possibly… do you have a motivating example?Thomas Pedersen [7:36 AM]
For instance in ggplot2 with aes() where it would be nice to have auto completion of the aesthetics that are possible in the layer
I think an example of this code would be something like:
ggplot(mtcars) + geom_point(aes(|))
where the valid autocompletion results for that aes() call would be inferred based on the aesthetics accepted by geom_point().
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.
Research direction
Start with the ggplot2 example in the issue: ggplot(mtcars) + geom_point(aes(|)). The payload names no source files, tests, or entry points, so the first research step is to locate ark's completion handling and determine how a call context could expose the enclosing layer's accepted aesthetics. Done means context-aware suggestions appear for the example without breaking ordinary completion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100