Henrik Bengtsson
banner
henrikbengtsson.bsky.social
Henrik Bengtsson
@henrikbengtsson.bsky.social
CS/Math Stat/UCSF Assoc Prof
R Foundation/R Consortium
https://futureverse.org, https://mastodon.social/@henrikbengtsson
#RStats
There's a Recall() in base R that one can use to avoid having to specify the function name, e.g. here Recall(n - 1).

That way it will be agile if you ever rename the function. But, it'll also allow you to do recursive calls in anonymous functions, which don't have names
November 7, 2025 at 2:45 PM
Reposted by Henrik Bengtsson
One might also note that parallel:: detectCores() itself says not to use it this way!

"This is not suitable for use directly for the mc.cores argument of mclapply nor specifying the number of cores in make cluster"
November 6, 2025 at 3:21 AM
Reposted by Henrik Bengtsson
That was a recent R dev days initiative, see this recent entry from the NEWS changes feed.
October 23, 2025 at 1:34 PM
This way you'll slowly get comfy w/ issues, Markdown & adding and editing files. You'll soon notice there's a commit history of all changes you've made and you can easily see old version. Still, working only in the browser.

You can worry about doing it 'git' CLI or RStudio later.

3/3
October 22, 2025 at 12:22 AM
Then you can start using issues to track your own ideas, bug reports, etc. Practice using Markdown formatting there. You can reference you R script in issues - even specific lines, and the code shows nicely in the issue without having to cut'n'paste.

2/
October 22, 2025 at 12:19 AM
One strategy to *get started* can also be to forget about 'git' on your computer and do everything manually on GitHub in the browser. You can add & edit files online, e.g. when you update an R script locally, click edit online and cut'n'paste it all and commit online with a small log message

1/
October 22, 2025 at 12:16 AM
I think they experienced email issues around that time. Check the r-pkg-devel list for a message from Uwe
October 17, 2025 at 8:57 AM
There's also cran.r-project.org/package=ntfy, which doesn't even require sign-up and it can be self-hosted too
ntfy: Lightweight Wrapper to the 'ntfy.sh' Service
The 'ntfy' (pronounce: notify) service is a simple HTTP-based pub-sub notification service. It allows you to send notifications to your phone or desktop via scripts from any computer, entirely without...
cran.r-project.org
October 8, 2025 at 2:59 PM
Reposted by Henrik Bengtsson
Something like this!

Tweaked the calculation to something I had originally intended and included 3-letter endings only.

–arp is very Skåne

I like the distribution of the –red/–röd/–ryd endings, of the same origin

Code: github.com/borstell/maps
October 4, 2025 at 9:28 PM
This resonates well with me. Please tell me there's also something for:

Everyone folds their cardboard boxes before putting them in the recycle bin
October 3, 2025 at 5:40 PM
Nice.

-arp?

PS. Do you share your code for this somewhere?
October 3, 2025 at 5:28 PM
I'd like to bring the attention also to long-serving, zero-dependency {gtools} on CRAN;

x <- c("8", "10", "1", "40", "9A", "21A", "21B")
> gtools::mixedsort(x)
[1] "1" "8" "9A" "10" "21A" "21B" "40"
> gtools::mixedorder(x)
[1] 3 1 5 2 6 7 4

cran.r-project.org/package=gtools

#RStats
October 2, 2025 at 5:06 PM
Reposted by Henrik Bengtsson
I wish there was static compilation or JIT of function and objects of dependency packages, so that one would not wait to get all dependencies to use just a few functions
September 27, 2025 at 10:43 AM