@coolbutuseless@fosstodon.org
@coolbutuseless@fosstodon.org avatar

coolbutuseless

@coolbutuseless@fosstodon.org

Nerd.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

Now that this pkg is actually in a state where it can do something useful, I can quickly realize some ideas for rendering. From idea to proof-of-concept render was ~15 minutes.

This is a ggplot object rendered into isometric layers.

It's just a shear + foreshortening transformation applied to the geometry, with points further offset in the y axis.

Isometric transformed ggplot with layer separation.

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

This was a lot of work to get this new graphics device package to this point.

Yet it looks like I've done nothing at all :)

animation of layers of a simple ggplot in R

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

hivemind:

What's the current preferred solution for running multiple R versions on macOS?

rig?
rswitch?

something else?

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

Thanks all - the answer to running multiple R versions on macOS is 'rig'

https://github.com/r-lib/rig

I just installed and tested new pkg on R4.1, 4.2, 4.3 and 4.4

It's helping me to decide minimum R version requirements, and to test on new 4.4

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

{zstdlite} update: cran has removed package after approval yesterday. :(

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

The {R6} package is a godsend for turning my ad-hoc buffoonery into something tame and delightful!

Should I be converting to {S7} ?

https://cran.r-project.org/package=R6

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

{xxhashlite} is now on CRAN!

Extremely fast hashing of R objects, files and raw vectors using 'xxHash'. R objects are hashed via the standard serialization mechanism in R. Raw byte vectors and strings can be handled directly for compatibility with hashes created on other systems.

https://cran.r-project.org/package=xxhashlite

{xxhashlite} supports returning the hash as a raw vector, and all the xxHash algorithms are available
xxhash() uses R’s serialization mechanism to handle any R object. When you only require a hash of the raw contents of a file, a raw vector or a string, then use xxhash_raw() and xxhash_file(). Rather than serializing the data first, the hash is calculated on the raw bytes

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

{zstdlite} is now on CRAN!

Fast compression/decompression of R objects, raw vectors, strings to/from memory and files.

Includes support for training and using compression dictionaries. Dictionaries offer significant compression and speed benefits for small data

A typical comparison against various settings for 'saveRDS()' is shown in the graph below

Executive summary: zstd can be extremely fast, but compression ratio can't match 'xz'

https://cran.r-project.org/web/packages/zstdlite/index.html

https://github.com/coolbutuseless/zstdlite

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

Survey: what new bit of syntax would you like in base ?

What should the following bits of syntax do?

  • ===
  • ++ And --
  • +=
  • //
  • ?
  • {{ }}
  • [[[ ]]]
  • <<==
  • (?: X)
coolbutuseless,
@coolbutuseless@fosstodon.org avatar

syntax hypothetical

f <- function(year, x) {

lunar phase for xth day of year

...
}

Three dots in a row is known as The Friday Operator.

R will call an LLM and get it to write the rest of the code.

henrikbengtsson, to random
@henrikbengtsson@mastodon.social avatar

FYI, CRAN requires package titles to be of length < 65 characters. Just received the following feedback for a new package:

> Please reduce the length of the title to less than 65 characters.

Do we have a community-driven place where we track these "hidden" CRAN requirements? I think there was a discussion about it, but I cannot remember if it happened.

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@Mehrad @henrikbengtsson I wonder how long it takes for new checks to filter out.

Have to wait for new r version I guess...

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

My data workflow

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

Does someone know of a tarball/sqlite/something with lots of info about the packages on CRAN?

E.g. database of information from all DESCRIPTION files

I might just have to start my own CRAN mirror to mine for what I want....

tylermorganwall, to random
@tylermorganwall@fosstodon.org avatar

Got my algorithm improvements working--now that's fast convergence!

fast convergence of stippled points into a face

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@tylermorganwall I am dying to know where this is heading!

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@tylermorganwall I will wait quietly for whatever this becomes :)

Very cool!

danwwilson, to random
@danwwilson@rstats.me avatar

How nice would it be if gracefully handled trailing commas in lists and vectors.

I bet no one can guess what is giving me the most grief today. 🤦‍♂️

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@danwwilson I recall a presentation from about 5 years ago which talked about a possible implementation. Can't seem to find it now :(

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@gaborcsardi @danwwilson that feels like it. Interesting to see quite a few things from that talk actually make it into R!

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

How to name your package: the complete guide. Part 2

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

How to name your package: the complete guide.

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

hypothetical: what would happen if I

  • manually allocated some memory in C (with malloc)
  • Crafted the memory to be an R object by writing a proper SEXP header for it
  • Returned this to R

Would R consider this cuckoo object to be real? It wouldn't appear in the list of objects to be garbage collected - would that impact its validity?

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

I think with a malloc and a memcpy I can quickly fake a real R SEXP object.

I will report back!

I will also see what PROTECT()/UNPROTECT() want to do, and see if it'll crash :)

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@gaborcsardi any gut intuition what would lead to a crash here?

MattCrumpLab, to random
@MattCrumpLab@fosstodon.org avatar

Had a bunch of fun with this one. Got some drum beats working with euclidean rhythms, and started on some compositional ideas with notes and stuff.

I put one 3-track sequence into Ableton and it didn't sound half bad.

Too much coding for one day though, brain melt has set in.

https://homophony.quest/blog/44_2_10_24_euclid/

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@MattCrumpLab Mad beats!

How are you handling soundfonts within R?

coolbutuseless, to cooking
@coolbutuseless@fosstodon.org avatar

with {rhub2}

Package passing valgrind and clang-ASAN ! Woo!

https://github.com/r-hub/rhub2

odr_k4tana, to random

Do yourself a favour and don't use the {likert} package in . It apparently isn't maintained anymore, uses close to EOL functions (even whe it still was maintained) and its documentation + usability is crappy as heck.

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@odr_k4tana maybe even just send an encouraging word :)

Only a few packages seem to use it, so maybe the author thinks it's not worth updating.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • tester
  • kavyap
  • thenastyranch
  • anitta
  • normalnudes
  • GTA5RPClips
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • Youngstown
  • ngwrru68w68
  • slotface
  • InstantRegret
  • rosin
  • JUstTest
  • cubers
  • cisconetworking
  • provamag3
  • modclub
  • everett
  • osvaldo12
  • khanakhh
  • Durango
  • Leos
  • megavids
  • ethstaker
  • tacticalgear
  • lostlight
  • All magazines