We need to find an easy way to specify join_keys. Previously setting join_keys was dependent on each cdisc_dataset() which contained a default list of keys for given dataset name. Right now join_keys can't no longer depend on a partial information from each dataset, which makes the code painful in some cases. Consider scenario
Instead of differentiating cdisc_data and teal_data function, (cdisc) keys should be generated by separate function. Functions definitions should look like this:
Don't force users to specify dataset_2 when they specify "primary" join_key.
Look at join_key docs and on the example below. When specifying primary key, developer needs to specify join_key(dataset_1 = "data", dataset_2 = "data", keys = "id")
Feature description
The main reason of this issue is that single
cdisc_dataset
will be replaced by the data.frame. It means thatcdisc_data
call might look like this:We need to find an easy way to specify join_keys. Previously setting join_keys was dependent on each
cdisc_dataset()
which contained a default list of keys for given dataset name. Right nowjoin_keys
can't no longer depend on a partial information from each dataset, which makes the code painful in some cases. Consider scenarioProposed solution
cdisc_data
andteal_data
function, (cdisc) keys should be generated by separate function. Functions definitions should look like this:dataset_2
when they specify "primary" join_key.Look at
join_key
docs and on the example below. When specifying primary key, developer needs to specifyjoin_key(dataset_1 = "data", dataset_2 = "data", keys = "id")
Please fix a vignette about join keys.