The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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
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-release: hanyupinyin_0.1.1.zip, r-oldrel: hanyupinyin_0.1.1.zip
macOS binaries: r-release (arm64): hanyupinyin_0.1.1.tgz, r-oldrel (arm64): hanyupinyin_0.1.1.tgz, 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.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.