R File fixes