Quicktexregapollo for old models
if one loads old apollo models with apollo_loadModel it can happens that these models do not have the "apollo" class, then using quicktexregapollo for these models fails due to the condition: if (!all(c("apollo", "maxLik", "maxim") %in% class(model))) { stop("Invalid model class. The model must be of classes 'maxLik', and 'maxim'.") fails. Maybe remove "apollo" class from the condition and show warning instead if class is missing