R code and resource files added