Remove exit, cout, cerr in R build