posit-dev / posit-dev/positron

Variables pane: misleading representation of labeled numeric variables

Open
#5,010 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: variables enhancement lang: r support
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):
Image

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.