简体   繁体   中英

.rmarkdown file, blogdown and in window preview for RStudio

I have been using .Rmarkdown files to create blog posts in R blogdown. The output of chunk of codes in .Rmarkdown documents are printed in the console and not in the document. If instead I create a .rmd file, then previews are in window. RStudio Global options are set to show preview in window for RMarkdown documents. Is this an expected behavior of .rmarkdown files?

Thanks

The differences between .Rmarkdown and .Rmd is explained here . The most relevant quote being:

In this book, we usually mean .Rmd files when we say “R Markdown documents,” which are compiled to .html by default. However, there is another type of R Markdown document with the filename extension .Rmarkdown. Such R Markdown documents are compiled to Markdown documents with the extension .markdown, which will be processed by Hugo instead of Pandoc.

More specific differences are explained in the book linked above.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM