https://github.com/pzhaonet/pinyin
The 'pinyin' package was developed in R language. It can convert Chinese characters in to Latin letters, officially called pinyin, i.e. the romanization system for Standard Chinese in mainland China, Malaysia, Singapore, and Taiwan. An brief introduction can be referred to the post pinyin: an R package that converts Chinese characters into Latin letters.
Figure 1: Test the new features in RStudio IDE
pylib() function.dic = c('zh', 'zh2') in the pylib() function allows the users to choose a preferable library for polyphone.fclib() and four_corner() imports a four-corner library and converts Chinese characters into four-corner codes, according to Qu Cheng's suggestions.wubi() imports a five-stroke library and converts Chinese characters into five-stroke codes, again according to Qu Cheng's suggestions.bookdown2py(), file.rename2py(), file2py() were updated to support the updates mentioned above.Each part of the functions are well documented. Other files were updated automatically by compilation.
Link to relevant lines in the code on GitHub can be found mainly in my latest commit (click to see the details):