←back to thread

Big Book of R

(www.bigbookofr.com)
288 points sebg | 1 comments | | HN request time: 0s | source
Show context
wpollock ◴[] No.43646498[source]
Very nice, but instead of an owl, shouldn't the cover illustration be a pirate?
replies(4): >>43646689 #>>43647343 #>>43647370 #>>43649428 #
DadBase ◴[] No.43647370[source]
Totally agree. R is pure pirate energy. Half the functions are hidden on purpose, the other half only work if you chant the right incantation while facing the CRAN mirror at dawn.
replies(3): >>43647653 #>>43650973 #>>43652227 #
account-5 ◴[] No.43650973[source]
I've never used R before, why would functions be hidden on purpose? Sounds like a recipe for frustration.
replies(2): >>43652952 #>>43664066 #
1. wdkrnls ◴[] No.43664066[source]
Computer scientists had this idea that some things should be public and some things private. Java takes this to the nth degree with it's public and private typing keywords. R just forces you to know the lib:::priv_fun versus lib::pub_fun trick. At best it's a signal for package end users to tell which functions they can rely on to have stable interfaces and which they can't. Unfortunately, with R's heavy use of generics it gets confusing for unwary users how developers work with the feature as some methods (e.g. different ways to summarize various kinds of standard data sets as you get with the summary generic or even the print generic) get exported and some don't with seemingly no rhyme or reason.