GenomeInfoDb is an R/Bioconductor package that provides utilities for manipulating chromosome names, including modifying them to follow a particular naming style.
See https://bioconductor.org/packages/GenomeInfoDb for more information including how to install the release version of the package (please refrain from installing directly from GitHub).