update the .R file