bookdown2py: Convert the Chinese headers of bookdown .Rmd files into...

Description Usage Arguments Value Examples

View source: R/py.R

Description

Convert the Chinese headers of bookdown .Rmd files into Pinyin

Usage

1
2
3
4
5
6
bookdown2py(
  folder = "py",
  remove_curly_bracket = TRUE,
  other_replace = NULL,
  dic = NA
)

Arguments

folder

character. The folder in which the files are to be converted.

remove_curly_bracket

logical. Whether to remove existing curly brackets in the headers.

other_replace

NULL or character. Define how to convert non-Chinese characters in mychar. NULL means 'let it be'.

dic

See help(pinzin).

Value

new .Rmd files with Pinyin headers.

Examples

1
bookdown2py(dic = NA)

pzhaonet/pinyin documentation built on June 17, 2020, 12:35 a.m.