To publish on Code Ocean, we ask that code be executed as a whole, so it can serve as a reproducible record of the analysis from start to finish.
You can do this by kniting an Rmarkdown file into a final report in your /results folder. Add the following
Rmarkdown::render command )from the Rmarkdown library) to your master script:
Rscript -e "rmarkdown::render(input = 'my-awesome-notebook.rmd', output_dir = '../results', clean = TRUE)"
Other Ways of Knitting an Rmarkdown Document
If you can also press the 'Knit' button from within an Rstudio Cloud Workstation session on Code Ocean.