Difference between R MarkDown and R NoteBook

后端 未结 8 1605
时光说笑
时光说笑 2021-01-29 20:01

I am trying to understand at a high level what the differences between R Markdown and R NoteBook. I know they are interrelated but I would like to figu

8条回答
  •  深忆病人
    2021-01-29 20:48

    Here's one practical difference I found :

    When you need to comment out a part of text, RMarkdown inserts # in every line of your text, whereas RNotebook neatly encapsulates text between a single pair of signs (as in html files)

    One may say, what a trivial difference. However, just because of it, I now always use R Notebook (instead of RMarkdown) in RStudio for all my documents. In everything else, they seem the same (for my needs, at least, such as generating html's and pdf's)

    Otherwise, my comments suddenly become headers,like below:

    # This part is commented out, but will show as Heading 1 font text
    

提交回复
热议问题