remove chunk options etc from R code