R/writeRmd.R

Defines functions writeRmd

writeRmd <- function(s,filename='report.Rmd',ishead=FALSE) {
  if(ishead)
  {
    cat(s,file = filename,sep='\n',append = TRUE)
  }
  else
  {
    cat(paste(s,'\n',sep=''),file = filename,sep='\n',append = TRUE)
  }
}
GaoLabXDU/CEPICS documentation built on June 9, 2020, 2:31 a.m.