install rmarkdown package
install.packages(rmarkdoen)
install file templates
install.packages("rticles")
Chibese pdf files need to choice "Ctex" file patten
install tinytex package
install.packages(tinytex)
install latex to compile PDF files –-two Methods
1. need to download the file Tinytex-1.zip from ’https://yihui.org/tinytex/TinyTeX-1.zip'
tinytex:::install_prebuilt("C:/Users/liumt/Downloads/tinytex-1.zip")
2. use command below to install online (download very slowly in China)
tinytex::install_tinytex()