I have the next code:
ks.test(NA, "pnorm")
It throws an error. I have it inside the try
function to allow that error (in fact, I do not have NA
in such a code, but a changing data). I hoped that in an RMarkdown document, writing error=FALSE
would not print the error not enough 'x' data
but I have found that this is not the expected behaviour: https://bookdown.org/yihui/rmarkdown-cookbook/opts-error.html
Is there a way to not printing the error message?
Thank you!