treat warnings in install.packages as errors

Fixing and enhancing Craig's approach, with a test.

Fixes #74.