added R code to markup