stack_trace superseeded by @kevinushey's code in Rcpp::exception