suppress error r

# Set options to suppress warnings and messages
options(warn=-1, message=FALSE)

# Your R code goes here

# Reset options to default after running the code
options(warn=0, message=TRUE)