fix R file