I have an MCMC chain that runs entirely in c++ with Rcpp.  It sometimes runs for a vary long time and I want to interrupt it.  Is there an efficient easy way to include catching an interupt signal and either aborting or returning results to that point?  This might be understood well, if so I apologize.<div>
<br></div><div>Thanks,</div><div>Andrew</div>