I have recently discovered that you can write scientific and non-scientific documents (articles, books, thesis, pamphlets, etc) using R Markdown. There seem to have very nice features. Some examples:
First and foremost, it integrates directly with a statistical software (e.g. R Rtudio). As such, you are not using two software (e.g. R Studio and TeXstudio).
It integrates very nicely with computer code (providing syntax highlighting), and other natural Markdown features
It integrates amazingly with HTML and other online type of interfaces, and as such, you are writing something which provides a more general platform that TeX, which is mainly (but not uniquely) devoted to pdf.
It also allows the creation of presentations.
Now, after using (La)TeX for around 3 years, I am very satisfied with it. Yet, a natural question is whether I should start exploring R Markdown, not the least because I also use R, and because R is in many dimensions taken over other (non-free) software (e.g. Stata, Matlab). As the few examples I gave you above show, R Markdown seems to me, in the end, a direct competitor of TeX.
So, what are the benefits of using TeX over R Markdown? (imagine you were to convince a newcomer to document typesetting to use TeX instead of R Markdown).
Note: this is a serious question, without any attempt to offend anyone in this community. I think this is a key issue, if one wants to engage in the debate over typesetting system comparison. I am very interested in hearing what other people's experience are on this.