3 ms·
R notebooks keep all that HTML and Javascript in a separate file. You can choose to check that file into git if you want to version the output, but if all you c
by jmcphers 10y ago
R notebooks keep all that HTML and Javascript in a separate file. You can choose to check that file into git if you want to version the output, but if all you care about is versioning the code, it's just a plain text R Markdown file.
- spot 10y agothat's interesting. what file is this and where is it kept? so if i want to send my notebook to someone and include my results, i have to send two files? or is there one file per output, per directory, or per user?
- baldfat 10y agoIf you want to save a plot you actually have to put the writing of the plot in the code. It would save as a image like png or svg. If your using the Notebook to share then they should just run the code on their side. If you want to make a report of it you just add one line of code and it will save a PDF/Word/Slide/etc for you in the present working directory. Sharing the Notebook for them to reproduce your results is just one text file of the RMarkdown file.
- ced 10y agoThat makes a lot of sense.