use `R_tryEval` instead of just `eval`

This is needed to properly release memory and return when R is not able
to execute the code.