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)", "漢語拼音"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.