Create a new CDISCTealDatasetConnector object
cdisc_dataset_connector.RdArguments
- dataname
(
character)
A given name for the dataset it may not contain spaces- pull_callable
(
CallableFunction)
function with necessary arguments set to fetch data from connection.- keys
optional, (
character)
vector of dataset primary keys column names- parent
(
character, optional) parent dataset name- label
(
character)
Label to describe the dataset.- code
(
character)
A character string defining code to modifyraw_datafrom this dataset. To modify current dataset code should contain at least one assignment to object defined indatanameargument. For example ifdataname = ADSLexample code should containADSL <- <some R code>. Can't be used simultaneously withscript- script
(
character)
Alternatively tocode- location of the file containing modification code. Can't be used simultaneously withscript.- vars
(named
list))
In case when this object code depends on otherTealDatasetobject(s) or other constant value, this/these object(s) should be included as named element(s) of the list. For example if this object code needsADSLobject we should specifyvars = list(ADSL = <adsl object>). It's recommended to includeTealDatasetorTealDatasetConnectorobjects to thevarslist to preserve reproducibility. Please note thatvarsare included to this object as localvarsand they cannot be modified within another dataset.- metadata
(named
list,NULLorCallableFunction)
Field containing either the metadata about the dataset (each element of the list should be atomic and length one) or aCallableFuntionto pull the metadata from a connection. This should return alistor an object which can be converted to a list withas.list.
Details
Create CDISCTealDatasetConnector from callable_function.