insightsengineering / insightsengineering/teal.transform

[Feature Request]: Introduce a `delayed_datasets` functionality

Open
#251 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
R
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Feature description

I would like to be able to specify a `delayed_data_extract_spec` for all datasets contained in the `teal_data` object, _before_ I have access to the `teal_data`. I want soemthing similar to `first_choice` that will resolve the datasets in the app.

1. If `teal_data` includes `ADSL` and `ADAE`, this
```
data_extract_spec(
dataname = delayed_datasets(c("ADSL", "ADAE")),
...
)
```
should resolve to this
```
list(
data_extract_spec(
dataname = "ADSL",
...
),
data_extract_spec(
dataname = "ADAE,
...
)
)
```

2. If `ADSL` and `ADAE` are the only datasets in `teal_data`, this should produce the same result:
```
data_extract_spec(
dataname = delayed_datasets("all"),
...
)
```

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