Rstudio use a simple comment like: % !Rnw weave = knitr to ensure that Rstudio knows the current .Rnw file should be processed with knitr (rather than Sweave). Would that be useful for ESS to adopt? https://support.rstudio.com/hc/en-us/articles/200532247 S