WWW: build R PDF docs (and fix R html builds) (#535).