add the completed R file