add R.cond and rename existing function of that name
doc fixes, closes #517 [ci skip]
Merge pull request #518 from davidchambers/cond

add R.cond and rename existing function of that name