R package fixes
added auto-error-checker