Only launch in interactive sessions
Export resolution and zero_range
Remove redundant test
Fixes for R CMD check