editing .R file