# load function
foo <- function(...) {
message("You entered :", paste0(...))
c(...)
}
# wrap around function or muffle the function ti's
muffle(foo(1, 2))
muffle(fun = foo)(1, 2)
sapply(1:3, muffle(fun = foo))
# silence warnings
wuffle(as.integer("a"))
sapply(list(1, "a", "0", ".2"), wuffle(fun = as.integer))
Run the code above in your browser using DataLab