Live data from Hacker News

Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

minimaxir.com

21–30 of 51 posts

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#21
post #18

Earlier quoted context omitted.

That sounds kind of ..uhmm.. incoherent. Care to elaborate?

If you’ve used both R and another, more reasonable language for any length of time, it’s perfectly coherent.

I'm using both R and Python on a daily basis (plus -- occasionally -- Clojure, Java and CL). Still, I don't understand what you mean.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#22
post #19

Earlier quoted context omitted.

In the Tidyverse everything in R is perfectly logical and coherent. What would you consider to be a “reasonable” language then?

One where it was not necessary to specially create a ‘tidy’ version of everything to escape the horrific mess that exists by default

OK, I see. The debate is gradually coming to the pitchforks and torches phase. Tons of adjectives and still zero meaningful input. I insist on explaining what the "horrific mess" part is about.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#23
post #19

Earlier quoted context omitted.

In the Tidyverse everything in R is perfectly logical and coherent. What would you consider to be a “reasonable” language then?

One where it was not necessary to specially create a ‘tidy’ version of everything to escape the horrific mess that exists by default

Your language was perfect the day it was created was it? R and it’s ecosystem stand head and shoulders above the rest.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#24
post #3

R notebooks behave similarly to org-mode, albeit with fewer supported languages and a few less options for controlling execution and value passing between code blocks. Org-mode is the oldest and most powerful environment of this sort that I know of. That said, for new users, I think R Notebooks are less daunting than Emacs + org-mode. Like most things associated with RStudio and the Tidyverse, I feel that they’ve rea…

I think it's likely R was inspired more by Mathematica's venerable notebook interface.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#25

It’s just that RStudio’s vim support is so extremely bad, compared to VSCode or even the Jupyter Notebook vim plug-in. I guess this won’t bother you if you don’t have a developer background, but I find that editing code in RStudio is a real pain. I wish I could use RStudio with the exact same keybindings and vim behavior as Jupyter in the browser. That alone would make things bearable. Like the exact same keys for ce…

[deleted]

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#26
The article claims that

> R Notebooks can only be created and edited in RStudio

Luckily, this is wrong. Since R Notebooks are simply R Markdown, they can be edited with any editor (although the integration is obviously lost). This is, in fact, one of its decisive advantages over Jupyter Notebooks: most of the other issues mentioned in the article are solvable, whereas this issue fundamentally isn’t.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#27
post #3

R notebooks behave similarly to org-mode, albeit with fewer supported languages and a few less options for controlling execution and value passing between code blocks. Org-mode is the oldest and most powerful environment of this sort that I know of. That said, for new users, I think R Notebooks are less daunting than Emacs + org-mode. Like most things associated with RStudio and the Tidyverse, I feel that they’ve rea…

I think it's likely R was inspired more by Mathematica's venerable notebook interface.

It was obviously inspired by many different things but the most direct genealogy is WEB [1] → noweb → Sweave → Knitr → R Markdown → R Notebooks.

Mathematica’s notebook interface in turn was almost certainly also inspired (directly or indirectly) by WEB, given that this was the first literate programming tool ever created.

[1] https://en.wikipedia.org/wiki/WEB

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#28
post #26

The article claims that > R Notebooks can only be created and edited in RStudio Luckily, this is wrong . Since R Notebooks are simply R Markdown, they can be edited with any editor (although the integration is obviously lost). This is, in fact, one of its decisive advantages over Jupyter Notebooks: most of the other issues mentioned in the article are solvable, whereas this issue fundamentally isn’t.

But the nice interactivity of it is only in RStudio iirc, which is a major selling point.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#29
post #19

Earlier quoted context omitted.

In the Tidyverse everything in R is perfectly logical and coherent. What would you consider to be a “reasonable” language then?

One where it was not necessary to specially create a ‘tidy’ version of everything to escape the horrific mess that exists by default

It would help if you said explicitly what language you think is better in this respect. Having Data Frames in Python at all requires importing Pandas afaik, so criticizing R for requiring an extra data-manipulation package wouldn't make sense from a Python perspective.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#30
post #19
post #18

Earlier quoted context omitted.

If you’ve used both R and another, more reasonable language for any length of time, it’s perfectly coherent.

In the Tidyverse everything in R is perfectly logical and coherent. What would you consider to be a “reasonable” language then?

Base R is also perfectly logical and coherent. If anything, it's so coherent for statistics work that it makes non-statistics work harder than it should be. For a 30-year old language that started life as a statistics package, that's pretty good.

R is no harder to read than C IMO, even badly-written R without spaces, indentation, proper line breaks, etc.

Post reply on HN