Method
-ONE
ANALYSIS.Rmd
ss
Built_report.R
# Set working directory
setwd("D:\\R_PROJECT\\machine_learning\\machine\\secco")
# Load packages
require(knitr)
require(markdown)
# Create .md, .html, and .pdf files
knit("My_Analysis.Rmd")
markdownToHTML('My_Analysis.md', 'My_Analysis2.html', options=c("use_xhml"))
# system("pandoc -s My_Analysis2.html -o My_Analysis.pdf")
shell.exec('My_Analysis2.html')
Method (ok)
-two
f1 <- list.files(pattern = 'YZ_DATA.html')
f2 <- paste('yz','_',Sys.Date(),'.html',sep = "")
file.rename(f1,file=eval(f2))
from Rmd file to html file
rmarkdown::render('YZ_DATA.Rmd','html_document','hhh.html')