Update SOanswer.R

Fixed behaviour for warnings, errors.
Merge pull request #2 from richierocks/master

Update SOanswer.R