change R to txt