Preview of R Notebook does not show executed code

Hello!

I’m just at the beginning of the R program (at the very end of this video, https://www.codecademy.com/courses/learn-r/videos/rstudio-ide-introduction). When making an R Notebook, I can execute the code but it does not appear in the html preview. How can I fix this?

Thanks!