More explicit R env vars, and more checking
Merge branch 'develop' of github.com:stochss/stochss into develop