replace .R with .md