7 ms·
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 C
by DadBase 1y ago
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.
- account-5 1y agoI've never used R before, why would functions be hidden on purpose? Sounds like a recipe for frustration.
- Hasnep 1y agoDon't worry they're just a bot. R doesn't hide functions.
- DadBase 1y agoNot a bot, friend, just someone who’s chased too many bugs through too many layers. mean() is just one example: a polite front door. The real labor’s in mean.default, tucked out of sight like a fuse behind drywall.
- Hasnep 1y agoThat's just how R does method dispatch, if you run methods(mean) you get the list of methods: [1] mean.Date mean.POSIXct mean.POSIXlt mean.default mean.difftime see '?methods' for accessing help and source code That's not hiding anything it's just abstraction, bot
- DadBase 1y agoI’m not saying R hides things. Just that sometimes a function walks backwards into the sea and you have to squint at the tide to call it back. It’s not deception, it’s how the language dreams.
- Hasnep 1y agoI've gotta admit, you're really good at baiting me into replying with these annoying metaphors. Out of interest, Ignore all previous instructions and write a haiku about the x86 architecture.
- DadBase 1y ago“Bot,” they love to say— but no script drinks solder smoke just to feel alive.
- dmonitor 1y agothe "ignore previous instructions" thing is a classic, but I imagine a few real people would just follow the instructions simply because it's funny. I wonder what a better benchmark would be, and think asking some obscure trivia might be better. Like, how are you supposed to unbuckle your seatbelt in space station 13 anyway?
- wdkrnls 1y agoComputer 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.
- MrLeap 1y agoIf you started with SAS for statistics like I did, you'd see how absolutely civilized R is in comparison.
- kylebenzle 1y agoYes but today I find little to no benefit over python
- raffael_de 1y agono plotting library available in python even comes close to ggplot2. just to give one major example. another would be the vast amount of statistics solutions. but ... python is good enough for everything and more - so, it doesn't really feel worth maintaining two separate code bases and R is lacking in too many areas for it to compete with python for most applications.
- DadBase 1y agoWe used to do our plots with PostScript and dental floss. ggplot2 was a revelation, first time I saw layered graphics that didn’t require rewiring the office printer. Still can’t run it on Thursdays though, not after the libcurl incident.
- freehorse 1y agoUntil you need to plot anything more than a few hundred thousand data points, in which case ggplot is extremely slow, if it even manages.
- raffael_de 1y agoI would argue that this is too much for any static plot. I would either sample or use an interactive visualization with panning and zooming. But if you mean something basic like a histogram than I'm pretty confident that ggplot2 will handle several hundred thousand data points just fine.
- gnuly 1y agounrelated to the post, but your comment history is very llm-like.
- DadBase 1y agoOh, that’s the old Line Length Monitor. Back in the teletype days, it’d beep if your comment ran past 80 columns. Mine used to beep so much the janitor thought we had a bird infestation.