Preview of R Notebook does not show executed code


I’m just at the beginning of the R program (at the very end of this video, When making an R Notebook, I can execute the code but it does not appear in the html preview. How can I fix this?