I wrote a wrapper around require() function and want to catch errors and warnings it produces:
require()
my_req <- function(pkgname){ tryrez <- try