if(length(value)!=1L)stop(errorCondition(paste0("Size of",what," is not one."),class=paste0(what,'-not-one')))
if(length(value)!=1L)stop(errorCondition(paste0("Size of",what," is not one."),class=paste0(what,'-not-one')))
}
}
check_extension<-function(extfileval,what){
check_notastring(extfileval[[1]],what=what)
if(extfileval[[1]]==extfileval[[2]])stop(errorCondition(paste0("We could not find the extension for ",what,". The returned value was: ",extfileval[[2]]),