ramnathv / poirot

Reproducible Blogging with R Markdown
http://ramnathv.github.com/poirotBlog
32 stars 19 forks source link

code separated by semi-colon #28

Closed stla closed 10 years ago

stla commented 10 years ago

Is it expected ? Knitting with RStudio generates two blocks for the two results. capture

ramnathv commented 10 years ago

Slidify lets knitr handle conversion of Rmd to md. So it should behave exactly as knitr will behave. Can you check what you get by knitting the Rmd file directly in RStudio without Slidify?

stla commented 10 years ago

That's highly strange. I have just tried the following Rmd file:

---
title: temp
--- &lead

hello 

[backticks]{r}
2+2; 3+3
[backticks]

and it generates the same output as knitr: capture

So, how did I get the previous output ???????? Isn't there an option declared somewhere ?

stla commented 10 years ago

Ooohh I see: this is due to the tidy option !

ramnathv commented 10 years ago

Yes, the tidy options has been the root cause of many a puzzling error for me, so much so that I always turn it off in my setup chunk. I like to control the indenting of my code, as it helps me think better!