View source: R/processQcStudbookResult.R
| processQcStudbookResult | R Documentation |
Converts the errorLst object returned by qcStudbook (when reportErrors=TRUE) into a format suitable for display in the Shiny UI.
processQcStudbookResult(errorLst)
errorLst |
list object returned by |
A list with the following components:
errors - data.frame with columns Row, Error, Details
warnings - data.frame with columns Row, Warning, Details
changedCols - list of changed column information
hasErrors - logical indicating if any errors were found
hasChangedCols - logical indicating if columns were renamed
qcStudbook for generating the errorLst input
runQcStudbook for a wrapper that uses this function
checkErrorLst for checking if errorLst has errors
checkChangedColsLst for checking column changes
library(nprcgenekeepr)
## Turn a qcStudbook error list into UI-friendly data frames.
errorLst <- qcStudbook(nprcgenekeepr::pedFemaleSireMaleDam,
reportErrors = TRUE
)
result <- processQcStudbookResult(errorLst)
result$hasErrors
result$errors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.