Q:

not displaying prints and on.exit in r

quiet <- function(x) { 
  sink(tempfile()) 
  on.exit(sink()) 
  invisible(force(x)) 
} 
0

Tags

New to Communities?

Join the community