add analysis R file