volesti C++ library provides new rounding routines. This function is about modifying the rounding R/Rcpp functions to provide this functionality too.