modify R files