insightsengineering / insightsengineering/teal.slice

[Feature Request]: Display dataset labels not names in Encoding and Filter panel

Open
#594 3 comments 0 reactions 0 assignees View on GitHub
core enhancement
Dominant language
R
Stars
12
Forks
7
Avg merge
3d 31m
Merged PRs (30d)
1

Description

### Feature description

I'd like the label of a dataset rather than its name (e.g. "Adverse Events" rather than "ADAE") to be displayed in the encodings and filter panel. While there is a `label` parameter in the `cdisc_dataset()` function setting it does not have the desired effect. Right now I'm abusing the `name` parameter for this purpose (see example below) but this does not work for ADSL and also the name cannot contain spaces.

```r
cdisc_dataset(
"AdverseEvents",
adae,
keys = get_cdisc_keys("ADAE"),
code = paste(deparse(adae_code), collapse = "\n")
)
```

image


image

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct.

### Contribution Guidelines

- [X] I agree to follow this project's Contribution Guidelines.

### Security Policy

- [X] I agree to follow this project's Security Policy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.