Causal-LDA / TrialEmulation

https://causal-lda.github.io/TrialEmulation/
Apache License 2.0
19 stars 7 forks source link

organise datastore extension classes in single files #158

Closed gravesti closed 4 months ago

gravesti commented 4 months ago

Would it make sense to gather the class definition and methods for the CSV and duckdb into a single file each: eg datastore_duckdb.R tests/tests-datastore_duckdb.R

You will need to have a roxygen tag with includes to make sure that the generics and classes are defined.

#' @includes te_datastore.R generics.R
NULL

Should we have a singled help page for all of these things? ie one for duckdb, one for csv You can use @rdname or @describeIn

darkgoldenrod-cherry commented 4 months ago

Didn't move te_datastore_datatable class, methods and tests, didn't move sample_expanded_data for te_datastore_csv since this method is currently shared with te_datastore_datatable, see overview (grey cells indicate no change): https://docs.google.com/spreadsheets/d/1M3xdht1mASg546RZISI_rbfcXBCLuGdA0S7xdVaH73A/edit?usp=sharing

gravesti commented 4 months ago

Thanks, I think that looks good. Maybe we can still have one sampling tests for csv in that test-datastore_csv file for completeness.