knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

R CMD Rd2pdf produces error when documentation contains CJK characters. Hence, all Chinese characters in pttR manual are translated to Pingyin (漢語拼音). Function references on the pttR website are translated back in Chinese, however.

The original characters and their corresponding Pingyin translations are listed below:

trans <- pttR:::pingying2zh

knitr::kable(trans, align = "c",
             col.names = c("繁體<br>(non-ASCII)",
                           "漢語拼音"))


liao961120/pttR documentation built on Dec. 16, 2019, 2:19 a.m.