R script for posting with .Rmd files