insightsengineering / insightsengineering/teal.transform
[Feature Request]: Introduce a `delayed_datasets` functionality
- 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
Assessment
This issue has not been assessed yet.