Fixed some R "bugs"

Strikethrough indicates that these issues were addressed. See the [distancesampling.org repo](https://github.com/distancedevelopment/distancesampling.com) for details.