喜欢之前knit后自动有个目录在上方,现在却没了? :cry:
能不能在开发版的 rmarkdown 中也添加此功能呢? ;-)
## 目录表
Coursera Capstone Project Milestone Report
Preparing the environment
Downloading the data
Loading the data
Data summary
Analysing the data
Subsetting the dataset
Cleaning the data for Exploratory Analysis
Manipulate TermDocumentMatrix file
Ploting the data
Conclusion
http://rpubs.com/englianhu/MilestoneReport
library(knitr)
library(markdown)
options(warn = -1)
# knitr configuration
opts_knit$set(progress=FALSE)
opts_chunk$set(echo=TRUE, message=FALSE, tidy=TRUE, comment=NA,
fig.path="figure/", fig.keep="high", fig.width=10, fig.height=6,
fig.align="center")
knit2html(paste0(getwd(),'/SO datasets/xxxxxx.Rmd'))
knit2pdf(paste0(getwd(),'/SO datasets/xxxxxx.Rmd'))
browseURL(paste0(getwd(),'/xxxxxx.pdf'))
browseURL(paste0(getwd(),'/xxxxxx.html'))