I observed a different between an interactive and non-interaction R session about traceback() which I do not understand. For the code below, it will produce an
BenBarnes's answer and dshepherd's comment are life saving. I will add one more parameter to avoid clogging up the screen in case one of the parameters is very big.