Simplify usage of `teal_data` for cdisc data format
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Esamina gli entry point esistenti cdisc_data e teal_data insieme al workflow within descritto nell’issue. Chiarisci se cdisc_data debba essere deprecato e se sia necessario un helper CDISC post-costruzione; al termine, gli utenti dovrebbero poter lavorare da teal_data senza ripetere manualmente la configurazione CDISC.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The more I think about this, the more I’m leaning towards deprecating
cdisc_data.The only purpose of this wrapper is to guess the
join_keysfor the datasets at creation. However, if we're promoting the use ofwithinto avoid code repetition (which I completely agree), users will still need to set up thejoin_keysthemselves, which defeats the purpose of the wrapper.I think it’s much easier if users just work with
teal_data. If they’re working with ADaM datasets, we can point them to thedefault_cdisc_join_keyshelper object if they want to use it.
Originally posted by @donyunardi in https://github.com/insightsengineering/teal.modules.clinical/pull/1230#discussion_r1787943364
I have very similar thoughts. The concept of those two differs significantly.
within()modifies the object in-place and require follow-up updates whereascdisc_data()requires all the information on that object init. As we are moving towards the use ofwithin()then I think that that our CDISC convenience function should follow the same paradigm to modify the object based on its current state. When doing that PR I got a little bit tired of setting keys and datanames separately. This feels repetetive and I think it can be easily wrapped up in a single convenience function - e.g.set_cdisc_attrs()oras_cdisc()so that the full processing can look like this:teal_data() |> within({...}) |> set_cdisc_attrs()
_Originally posted by @pawelru in
https://github.com/insightsengineering/teal.modules.clinical/pull/1230#discussion_r1787959135
Summary
We want to promote the use of the within function when building teal_data with the CDISC data format. As mentioned in the discussion above, the purpose of cdisc_data is lost when using within, since users will still need to set up join_keys manually.
Let's simplify this by having users only work with teal_data(). Any additional setup for CDISC data types can be handled afterward.
Note: We should also be able to avoid requiring users to set up datanames once we're finished with this.
- Lingua principale
- R
- Stelle
- 11
- Fork
- 10
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pharmaverse/teal.data
-
question
Difficoltà 3/5 Mezza giornata Idoneità per principianti 62/100
pharmaverse/teal.data#395 ·
-
[Bug]: Can't find join_keys between indirectly linked datasetsForse già presa @gogonzo l’ha presa 413 giorni fa. Apertabug core
pharmaverse/teal.data#384 · 1 assegnatario ·
-
[Bug]: `c` method for teal_data doesn't concatenate `@join_keys`Forse già presa @chenyangsu l’ha presa 7 giorni fa. Apertabug core
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
pharmaverse/teal.data#374 ·
-
core question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
pharmaverse/teal.data#369 ·
-
core enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
pharmaverse/teal.data#368 · 4 commenti ·
Tutte le issue di pharmaverse/teal.data
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
Bioconductor/BiocParallel#289 ·
-
automation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
waldronlab/BugSigDBcuration#2224 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
merliseclyde/BAS#118 ·