added a script to build R and appropriate packages