For a series of reasons, I am using .md as an extension for an RMarkdown file. However, there is apparently no way to indicate RStudio this is an RMarkdown file; it's not able to edit files through a symbolic extension either. Any idea how to fix this? Maybe through the YAML front matter?

Try using .Rmd as an extension, although.md does work on my setup

How does .md work?

It doesn't. I was wrong. The extension needs to be .Rmd (or .qmd, if you have Quarto). It would be necessary to get down in the weeds of the render sections of knitr to recognize other extensions.

1 Like