Skip to content
Snippets Groups Projects
Unverified Commit d0a64a3d authored by Todor Kondic's avatar Todor Kondic
Browse files

Clearer duplicates error

parent 46a1793c
No related branches found
No related tags found
No related merge requests found
...@@ -496,9 +496,13 @@ getEntryFromComp<-function(entry,id,set,mode,compTab) { ...@@ -496,9 +496,13 @@ getEntryFromComp<-function(entry,id,set,mode,compTab) {
res<- if (length(ind)==1) compTab[ind,entry] else { res<- if (length(ind)==1) compTab[ind,entry] else {
if (length(ind)>1) { if (length(ind)>1) {
stop("Nonunique entry selection in comprehensive table.") warning("Nonunique selection in comprehensive table:")
for (i in ind) {
message('ID: ',compTab$ID[[i]],' set: ',compTab$set[[i]],' mode: ',compTab$mode[[i]])
}
warning("The compound set table likely containes duplicate IDs per set/mode combination. Please correct this.")
} else { } else {
stop("Entries not found for id ", id,"set ",set, "and mode ", mode, " .") warning("Entries not found for id ", id,"set ",set, "and mode ", mode, " .")
} }
} }
res res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment