checkMetadata before import
checkMetadata.RdThis is a collection of functions to check the integrity of the metadata table before importing it.
Usage
checkMetadata(myTable)
checkRetrievedMatchDeployed(myTable)
checkOpenSession(myTable)
checkLoggers(myTable)
checkNames(myTable)Functions
checkRetrievedMatchDeployed(): Check loggers to be deployed or retrieved is in an open logging sessioncheckOpenSession(): Check loggers to be deployed or retrieved is in an open logging sessioncheckLoggers(): Check if loggers are registered in the loggers.logger_info tablecheckNames(): Check if names in data_responsible exists in the metadata.people table.
Examples
if (FALSE) { # \dontrun{
connectSeatrack(Username = "testreader", Password = "testreader")
myCheck <- checkMetadata(sampleMetadata)
plot(myCheck) #quickly see how many problems there are
myCheck # check the print function for a complete list of the errors
#Or run a single test separately
checkOpenSession(sampleMetadata)
} # }