This is a thin wrapper around labkey.selectRows(). It uses the site
configuration from getSiteInfo (the configuration file, or
the defaults plus a warning when there is no file) and sets the LabKey
credentials with setLabKeyDefaults. All columns are
returned, including hidden ones, when colSelect is NULL.
Value
A data.frame containing LabKey demographic data with the columns specified in the single parameter provided.
Examples
if (FALSE) { # \dontrun{
## Needs a connection to a LabKey server
library(nprcgenekeepr)
siteInfo <- getSiteInfo()
colSet <- siteInfo$lkPedColumns
source <- " generated by getDemographics: "
pedSourceDf <- tryCatch(getDemographics(colSelect = colSet),
warning = function(wCond) {
cat(paste0("Warning", source, wCond),
name = "nprcgenekeepr"
)
return(NULL)
},
error = function(eCond) {
cat(paste0("Error", source, eCond),
name = "nprcgenekeepr"
)
return(NULL)
}
)
} # }
