I am trying to differentiate between 3 different situations in my Rmarkdown:
- ctrl + shift + k knit,
- opening up the Rmd and running code by chunks, and
- rendering it using rmarkdown::render.
I can differentiate the first one as it gives
interactive() whereas the other two situation gives
TRUE. However, I don't know how to differentiate them further. I know I can add a params to the
rmarkdown::render function, but I rather not if I don't have to. Appreciate any suggestions. Thanks heaps.