posit-dev / posit-dev/positron
Variables pane: misleading representation of labeled numeric variables
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
System details:
Positron and OS details:
Positron Version: 2024.10.0 (Universal) build 14
Code - OSS Version: 1.93.0
Commit: 901ab5d11d694212d32e53b97f771c5d601e428e
Date: 2024-10-09T15:26:55.363Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0
Interpreter details:
R 4.4.0
Describe the issue:
Labeled numeric variables are rendered as if they are character variables (in quotes):
Steps to reproduce the issue:
mtcars$cyl_lab <- haven::labelled(mtcars$cyl, label = "Cylinders")
Expected or desired behavior:
Numeric values should not be in quotes.
Were there any error messages in the UI, Output panel, or Developer Tools console?
No.
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 in the Variables pane and reproduce the issue with the provided R command using haven::labelled on mtcars$cyl. Compare the rendered value with the expected numeric representation, and consider the issue complete when labeled numeric values are displayed without quotes while character values retain their quoted representation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript
- Domain
- data, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100