RDS
TealDatasetConnector
rds_dataset_connector.Rd
Usage
rds_dataset_connector(
dataname,
file,
keys = character(0),
label = character(0),
code = character(0),
script = character(0),
metadata = list(type = "rds", file = file),
...
)
rds_cdisc_dataset_connector(
dataname,
file,
keys = get_cdisc_keys(dataname),
parent = if (identical(dataname, "ADSL")) character(0L) else "ADSL",
label = character(0),
code = character(0),
script = character(0),
metadata = list(type = "rds", file = file),
...
)
Arguments
- dataname
(
character
)
A given name for the dataset it may not contain spaces- file
(
character
)
path to (.rds
or.R
) that containsdata.frame
object or code tosource
- keys
optional, (
character
)
vector of dataset primary keys column names- label
(
character
)
Label to describe the dataset.- code
(
character
)
A character string defining code to modifyraw_data
from this dataset. To modify current dataset code should contain at least one assignment to object defined indataname
argument. For example ifdataname = ADSL
example 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
.- metadata
(named
list
,NULL
orCallableFunction
)
Field containing either the metadata about the dataset (each element of the list should be atomic and length one) or aCallableFuntion
to pull the metadata from a connection. This should return alist
or an object which can be converted to a list withas.list
.- ...
(
optional
)
additional arguments applied tobase::readRDS()
function- parent
(
character
, optional) parent dataset name