Mwavu Kennedy

@mwavu.com

i write r for fun & profit. neovim, btw. arch, btw. site: https://mwavu.com

> Anyone has an idea why? i do... claude is stupid & outdated.

Bild
novica@novica.bsky.social · 5mo ago

#rstats question: every time (ok 3 times so far) I ask claude to make some R code it generates this function. ``` `%||%` <- function(a, b) if (is.null(a) || length(a) == 0) b else a ``` Anyone has an idea why? I guess one answer is to avoid adding `rlang` dependency?

R distinguishes between functions and non-functions in almost all contexts, and will look for the appropriate type first. Finding the F density as df happens when there isn't a non-function df to find, and that's when you get "object of type closure is not subsettable"

A month later, here is what happened to this work. blog.thecoatlessprofessor.com/posts/extrac... #rstats

Extraction with a Footnote – TheCoatlessProfessor

blog.thecoatlessprofessor.com

James Balamuta@coatless.bsky.social · 7mo ago

Making #rstats portable on #macOS has been the community's Sisyphean boulder since 2009. Now, download a tar.gz, extract, run from: github.com/portable-r/p... Signed, notarized, 4.3.0 - 4.5.3. Blog: blog.thecoatlessprofessor.com/programming/...

A macOS desktop showing two windows side by side. On the left, a Finder window displays the contents of a "portable-r-4.5.3-macos-arm64" folder, with a directory tree expanded under "library" revealing subfolders like base, boot, class, cluster, codetools, compiler, datasets, foreign, graphics, grDevices, grid, and jsonlite (which is expanded to show CITATION, DESCRIPTION, doc, help, and html items). On the right, a Terminal window (zsh shell) shows commands for downloading and extracting Portable R 4.5.3 for macOS ARM64 from GitHub using curl, verifying the R home directory with Rscript, and installing the jsonlite package. The terminal output confirms jsonlite was successfully downloaded (1.1 MB) and installed, with the final line printing {"portable":true} to verify the portable configuration is working.