Method new()
Initialize DataSpaceStudy
class.
See DataSpaceConnection
.
Usage
DataSpaceStudy$new(study = NULL, config = NULL, group = NULL, studyInfo = NULL)
Arguments
study
A character. Name of the study to retrieve.
config
A list. Stores configuration of the connection object such
as URL, path and username.
group
An integer. ID of the group to retrieve.
studyInfo
A list. Stores the information about the study.
Print DataSpaceStudy
class.
Usage
DataSpaceStudy$print()
Method getDataset()
Get a dataset from the connection.
Usage
DataSpaceStudy$getDataset(
datasetName,
mergeExtra = FALSE,
colFilter = NULL,
reload = FALSE,
outputDir = NULL,
...
)
Arguments
datasetName
A character. Name of the dataset to retrieve.
Accepts the value in either the "name" or "label" field from availableDatasets
.
mergeExtra
A logical. If set to TRUE, merge extra information.
Ignored for non-integrated datasets.
colFilter
A matrix. A filter as returned by Rlabkey's
makeFilter
.
reload
A logical. If set to TRUE, download the dataset, whether
a cached version exist or not.
outputDir
A character. Optional, specifies directory to download
nonstandard datasets. If NULL
, data will be downloaded to
dataDir
, set with setDataDir(dataDir)
. If dataDir
is not set, and outputDir
is NULL
, a tmp directory will be
used.
...
Extra arguments to be passed to
labkey.selectRows
Method clearCache()
Clear cache
. Remove downloaded datasets.
Usage
DataSpaceStudy$clearCache()
Method getDatasetDescription()
Get variable information.
Usage
DataSpaceStudy$getDatasetDescription(datasetName, outputDir = NULL)
Arguments
datasetName
A character. Name of the dataset to retrieve.
Accepts the value in either the "name" or "label" field from availableDatasets
.
outputDir
A character. Directory path.
Method setDataDir()
Set default directory to download non-integrated datasets. If no
dataDir
is set, a tmp directory will be used.
Usage
DataSpaceStudy$setDataDir(dataDir)
Arguments
dataDir
A character. Directory path.
Method refresh()
Refresh the study object to update available datasets and treatment info.
Usage
DataSpaceStudy$refresh()
Method clone()
The objects of this class are cloneable with this method.
Usage
DataSpaceStudy$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.