Removing exit, cout, cerr from R build