fixed call to rm() in resume.default() to satisfy R CMD CHECK note -- resume.default: no visible binding for global variable ‘mod’