rstudio / rmarkdown-book

R Markdown: The Definitive Guide (published by Chapman & Hall/CRC in July 2018)
https://bookdown.org/yihui/rmarkdown
Other
774 stars 512 forks source link

Output inline R Markdown files #55

Open afrandsen opened 5 years ago

afrandsen commented 5 years ago

I recently bought the printed version of the book to support you, and its great!

I just read Section 2.2 Compile an R Markdown document. And I just got a little confused when reading:

"...With notebooks, you can run code chunks individually and see results right inside the RStudio editor. This is a convenient way to interact or experiment with code in an Rmd document, because you do not have to compile the whole document. Without using the notebooks, you can still partially execute code chunks, but the execution only occurs in the R console, and the notebook interface presents results of code chunks right beneath the chunks in the editor, which can be a great advantage..."

I turned to the online version of the book and discovered the same. As far as I can see in my Rmd files, I can indeed run code chunks and get the results right beneath the chunks in the editor, I'm sure this feature is something that has been added since that section was written.

So my suggestion is to update that section a little bit :smiley:.

yihui commented 5 years ago

I think you are correct. Thanks for the suggestion!