R error handling
R error handling