R file fix