Difference between R MarkDown and R NoteBook

后端 未结 8 1609
时光说笑
时光说笑 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:36

    Recently I found this post which made me clear on the R Markdown vs. R Notebook issue. http://uc-r.github.io/r_notebook

    Here are a few relevant lines:

    Writing an R Notebook document is no different than writing an R Markdown document. The text and code chunk syntax does not differ from what you learned in the R Markdown tutorial. The primary difference is in the interativeness of an R Notebook. Primarily that when executing chunks in an R Markdown document, all the code is sent to the console at once, but in an R Notebook, only one line at a time is sent. This allows execution to stop if a line raises an error.

    Also there is this on knit vs. preview when you create a R Notebook in RStudio:

    The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike Knit, Preview does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.

    Hope you find it useful.

提交回复
热议问题