4 ms·
1) Version Control! I normally run a single user git workflow and even that is a problem with Jupyter notebooks. 2) Code Execution is all at once or in chunks
by baldfat 10y ago
1) Version Control! I normally run a single user git workflow and even that is a problem with Jupyter notebooks.
2) Code Execution is all at once or in chunks in R Notebooks. So I can do everything in batches. I do this so I can loop through 13 reports all pointing to one certain group of persons.
3) Works as a script out of the box and you don't have to change the format of your code.
4) Output. In R Notebooks I can output to HTML, PDF, Word/Libre Office or a dozen other formats with one line of code. I can have it in all formats at once. Because it all in one R Markdown file.
- ced 10y agoVersion Control! I normally run a single user git workflow and even that is a problem with Jupyter notebooks. What's the difference? Most plotting libraries output MBs of HTML/Javascript, that would be a mess in git. How does R Notebooks handle this?
- baldfat 10y agogit just backs up the source files not the output of the scripts. You could have a images folder and have git upload the graphics but I personally don't do that.
- matt4077 10y agoI'd say generated data just shouldn't be saved by default. For long-running scripts, the actual data is usually written to files anyway.
- jmcphers 10y agoR 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.