I need to submit an RMD file with both the code chunks and their output rendered inline, for a school assignment (the submission must be in Rmd format).
When I run my chunks in Rstudio, I do see the code and the output inline. I save the Rmd file and open it again, and I still see the code and output inline.
However when I upload the Rmd file or copy it to a different directory, and open the file, the output is no longer shown.
How can I save the Rmd file with both code and output embedded inline, so it can be shared with my professor ?
Here's what I have tried :
output: html_notebook editor_options: chunk_output_type: inline
Settings -> Chunk Output Inline
Settings for each chunk -> Output -> Show code and output
Any inputs will be much appreciated. Thank you very much.