Skip to content

Commit

Permalink
clearer error message
Browse files Browse the repository at this point in the history
  • Loading branch information
d-callan committed Oct 11, 2023
1 parent 1b88c70 commit 6c239d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/class-Megastudy.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ check_megastudy <- function(object) {

if (!!length(ancestor_id_cols)) {
if (!all(ancestor_id_cols %in% names(df))) {
msg <- paste("Not all ancestor ID columns are present in abundance data.frame")
msg <- paste("Not all ancestor ID columns are present in data.frame")
errors <- c(errors, msg)
}
} else {
Expand Down Expand Up @@ -112,4 +112,4 @@ Megastudy <- setClass("Megastudy", representation(
data = 'data.table',
ancestorIdColumns = 'character',
studySpecificVocabularies = 'StudySpecificVocabulariesByVariableList'
), validity = check_megastudy)
), validity = check_megastudy)

0 comments on commit 6c239d9

Please sign in to comment.