hanyupinyin - Convert Chinese Characters into Hanyu Pinyin
Convert Chinese characters into Hanyu Pinyin (the official
romanization system for Standard Chinese) with support for
tones, toneless output, initials, URL slugs, and valid R
variable names. The package was inspired by the now-orphaned
CRAN package 'pinyin' (archived in April 2026 after the
maintainer became unreachable). 'hanyupinyin' is a ground-up
rewrite using the authoritative Unicode Unihan database, a
vectorized engine, and modern R practices. Dictionary data are
derived from the Unicode Unihan Database (Unicode Consortium,
2025) <https://www.unicode.org/reports/tr38/>.