dot-rxWithWd function

Temporarily set options then restore them while running code