options Table of Contents Suppress warnings Suppress warnings howto options(warn = -1) expr options(warn = 0) or just: suppressWarnings(expr) Note: For R Markdown, the options approach won't work. Use ```{r, warning=FALSE} ``` https://stat.ethz.ch/R-manual/R-devel/library/base/html/warning.html https://stackoverflow.com/questions/16194212/how-to-suppress-warnings-globally-in-an-r-script