improve R uninstall

in particular, the `:pkgutil` regexp was no longer working
Merge pull request #5339 from rolandwalker/r_uninstall

improve R uninstall