Fix Issue #232 by wrapping evaluations in withVisible

also, remove unused variable gotMismatch, and use one call to R instead of three for getting the printed representation of the result.