# Returns 4
safeExecute({ 2 + 2 }, module = "test")
# Returns NULL and logs error
safeExecute({ stop("Error!") }, module = "test")
# Returns custom default on error
safeExecute({ stop("Error!") }, module = "test", default = data.frame())
Run the code above in your browser using DataLab