Henrik Bengtsson
@henrikbengtsson.bsky.social
510 followers 14 following 66 posts
CS/Math Stat/UCSF Assoc Prof R Foundation/R Consortium https://futureverse.org, https://mastodon.social/@henrikbengtsson #RStats
Posts Media Videos Starter Packs
Reposted by Henrik Bengtsson
cborstell.bsky.social
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
A map of Sweden in 10 different panels, each showing the log odds frequency of different 3-letter place name endings in various shades of red (darker means higher prevalence; gray means no data).
henrikbengtsson.bsky.social
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
henrikbengtsson.bsky.social
Nice.

-arp?

PS. Do you share your code for this somewhere?
Reposted by Henrik Bengtsson
cborstell.bsky.social
Distributions of endings in Swedish place names

#RStats #DataViz
A map of Sweden in 10 different panels, each showing the proportional frequency of different place name endings in various shades of blue
henrikbengtsson.bsky.social
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
henrikbengtsson.bsky.social
Another real-world #HPC cluster confirmed for future.batchtools.futureverse.org - built-in template for PBS/TORQUE

plan(batchtools_torque)

works with PBSPro scheduler. Big thanks to @eliocamp.mastodon.social.ap.brid.gy - req'd some xtra efforts bc special R_LIBS_USER location

#RStats #parallel
Reposted by Henrik Bengtsson
adambrosiomd.bsky.social
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
Reposted by Henrik Bengtsson
jeroenooms.bsky.social
Super excited for the new release of #rstats V8 which now also works in WebR by running js/wasm natively in web worker (thanks to @gws.phd). Will release some cool new packages soon to show the potential of WASM in R ✨
henrikbengtsson.bsky.social
@ericmigi.com two Qs:

1. Is there a public forum to discuss bugs etc? I don't want to waste my or others time with duplicate reports. Think GitHub issues.

2. is there another way to report on bugs and issues than through the app? I'd like to be able to write a proper bug report on a real keyboard?
henrikbengtsson.bsky.social
A #Slurm user just confirmed that "yay it works. Pretty sick!"

Thanks to excellent feedback from several users, it'll soon be even easier to distribute #rstats code via #HPC job schedulers using future.batchtools

#parallel #futureverse
henrikbengtsson.bsky.social
If anyone else is following this, we've moved over to github.com/futureverse/..., where progress has already been made
henrikbengtsson.bsky.social
#RStats #Positron Q: Is it possible to programmatically restart R running in Position Console?

I want to add support for it as startup::restart(), and if not possible (e.g. RStudio Console), at least produce an informative error message

github.com/HenrikBengts...
Reposted by Henrik Bengtsson
emilyriederer.bsky.social
Really insightful post from Julie Tibshirani (spotted in LinkedIn, can't find on Bsky) reflecting on #rstats 's unique governance structure and what can be learned for other languages

jtibs.substack.com/p/if-all-the...
If all the world were a monorepo
The R ecosystem and the case for extreme empathy in software maintenance
jtibs.substack.com
henrikbengtsson.bsky.social
Not sure I understand the "cheating" part, but your approach seems 100% valid.

WASM and webR have really grown on me over the summer. So much potential...
henrikbengtsson.bsky.social
If anyone else is following this, we've moved over to github.com/futureverse/..., where progress has already been made
henrikbengtsson.bsky.social
Ideally there would be a single teeny installation tool `install-r` that would walk you through the installation on different OSes and give instructions what's missing and how to fix them. Sometimes it might be "Ask admin to install 'xyz'" and sometimes "Do you want to install 'pqr' now?"
henrikbengtsson.bsky.social
I think we (the #RStats community) could do better when it comes to instructions, or better, tools for installing R on #Linux.

A major thing we cld clarify is the diff in installing as (a) root/admin/sudo vs (b) a non-privileged user. Some can only do the latter and it takes much more knowledge
henrikbengtsson.bsky.social
Awesome (for real) - we're making progress here, and it'll help lots of others.

So, y'day I actually update the develop version of future.batchtools (>= 0.20.0-9015) to handle this case. Can you please retry after updating:

remotes::install_github("futureverse/future.batchtools", ref="develop")
henrikbengtsson.bsky.social
What do you get?

> plan(future.batchtools::batchtools_slurm)
> f <- future(42)
> f$config$reg$status
> f$config$reg$status # need to call it a few times
> library(future)
> plan(future.batchtools::batchtools_slurm)
> f <- future(42)
> f$config$reg$status
> f$config$reg$status
Key: <job.id>
   job.id def.id  submitted started  done  error mem.used resource.id batch.id
    <int>  <int>      <num>   <num> <num> <char>    <num>       <int>   <char>
1:      1      1 1757451949      NA    NA   <NA>       NA           1   849716
   log.file                            job.hash job.name
     <char>                              <char>   <char>
1:     <NA> job454af4bd10d2eebe2308c0f9584a2584     <NA>
>
henrikbengtsson.bsky.social
Thanks a bunch. That '--jobs=runtime' seems weird - it should be a job id number, not "runtime". I'm pulling that "job id" from batchtools - need to dig deeper.

BTW, if you have a GitHub account, I'm happy to continue the discussion in a new issue at github.com/futureverse/...
henrikbengtsson.bsky.social
Thank you! Others reported on this in past, but I couldn't reproduce. I've now done a deep study on Slurm and I might have found the culprit (future.batchtools.futureverse.org/news/index.h...). Could you please retry?

remotes::install_github("futureverse/future.batchtools", ref="develop")
Changelog
future.batchtools.futureverse.org