Why code chunks goes missing in knitted rmarkdown preview notebook?

I have a habit of saving my codes in rmarkdown preview notebook file i.e. .nb.html files for future code reference.

Lately I have noticed - some code chunks goes missing from .nb.html files but their outputs are included. (no chunk options are used)

PS - Image below (Left is code editor, Right is knitted document)

I have also noticed this in {.tabset} chunks.

Is this a natural behavior of rmarkdown or there is some bug ?

Before switching to R I have used jupyter lab for creating python notebooks and didn't experience such behavior in there.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.