R file for project