R file now compiles