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)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.