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/>.

Version: 0.1.1
Depends: R (≥ 3.5)
Imports: stringi
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-04-22
DOI: 10.32614/CRAN.package.hanyupinyin (may not be active yet)
Author: Haoran Cui [aut, cre]
Maintainer: Haoran Cui <hao.ran.cui at ktstat.com>
BugReports: https://github.com/CuiHR17/hanyupinyin/issues
License: MIT + file LICENSE
URL: https://github.com/CuiHR17/hanyupinyin
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: hanyupinyin results

Documentation:

Reference manual: hanyupinyin.html , hanyupinyin.pdf
Vignettes: Converting Chinese to Pinyin with hanyupinyin (source, R code)

Downloads:

Package source: hanyupinyin_0.1.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): hanyupinyin_0.1.1.tgz, r-oldrel (arm64): not available, r-release (x86_64): hanyupinyin_0.1.1.tgz, r-oldrel (x86_64): hanyupinyin_0.1.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=hanyupinyin to link to this page.