rmarkdown inline code vs. code chunk

Viewed 3723

I'm working with an rmarkdown document in Rstudio, where I'm noticing some differences in the behavior of inline R code from R code in a code chunk. For instance, if I use the function lubridate::now() in a code chunk, I see that the time zone is appended to the output when I knit the Rmd document. However, when I use the same R code, i.e., lubridate::now(), as inline code and knit the document, I see that the time zone is not included in the output. Can you help me to understand this difference?

Thanks.

2 Answers
Related