This is an enhancement request to replace cat
in glmTreat
to message
or warning
.
Currently the code looks like this:
if (lfc == 0) {
fun <- ifelse(isLRT, "glmLRT", "glmQLFTest")
cat(paste0("Zero log2-FC threshold detected. Switch to ",
fun, "() instead."), "\n")
return(do.call(fun, args = list(glmfit, coef, contrast)))
}
I understand that it is important to make the user aware that something fundamental to the analysis is changing by default, but there is no way to capture this type of printing when you're fully aware of what is happening and don't want to see the messages (e.g. code testing).
Will assign all variables as usual, and capture
cat
tocaptured
.