使用Rmarkdown

安装rmarkdown

install.packages("rmarkdown")

安装依赖 (linux平台)

pandoc

获取source

1
2
3
git clone https://github.com/jgm/pandoc
cd pandoc
git submodule update --init # to fetch the templates

安装Haskell Platform

1
curl -sSL https://get.haskellstack.org/ | s

安装pandoc

1
2
stack setup
stack install

将~/.local/bin添加至path

测试