change .txt to .r