Support all version, R-release, R-oldrel separately

Remove magrittr dependency, add XML dependency.