@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

Curmudgeons portalling in to tell me my latest idea is terrible and/or has been done before

video/mp4

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@hrbrmstr It's not really a real complaint :)

I have a few things in the pipeline and currently hoping that there might be someone that even cares enough to hate it :)

I'm vaccinated against negativity!

johnmackintosh, to random
@johnmackintosh@fosstodon.org avatar

I'm working on an internal charting package, based on the plots I created for our demographic/ adult health profiles.

This seems to involve a ton of boiler plate ggplot2 code and there must be someone, somewhere who has done something similar.
If so, please point me in that direction so I can think how best to structure the code

Note - this is not related to themes etc.

It's more the basics such a line chart template, a column chart template etc.

Thanks in advance

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@johnmackintosh Probably not an actual answer to your question:

I have been down paths of creating custom plots with lots of arguments. It got painful quickly, as it diverged from what people already understood with {ggplot2}.

Instead I created a few custom geoms/stats, then it was just a case of telling people:

"You know ggplot. Here are our in-house custom geoms. Facets and everything else work the same. Go for it!"

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

command-line tip:

If you want to create a ".Rproj" file on the command line:

#> echo "Version: 1.0" > projname.Rproj

On macOS, you can then do the following to open RStudio

#> open projname.Rproj

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

Introducing {carelesswhisper} - automatic speech recognition in using whisper.cpp

Attached vid: Live capture of my R session: recording 2 seconds of audio and translating to text.

This app includes the smallest (70MB) multi-language model. It can translate other languages to English too!

Also includes built-in audio recording code based upon miniaudio.

Pkg should work out-of-the box. No dependencies. (in theory!)

https://github.com/coolbutuseless/carelesswhisper

Live capture of R session showing automatic speech recognition with carelesswhisper package

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

One thing that I really like about {magrittr} pipes:

The ability to quickly create "partial functions" - i.e. copies of functions where some arguments are pre-defined.

The alternative being to use 'purrr::partial()', or manually writing a wrapper function.

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

{magrittr} partial function hack in action:

I'm currently working with some really really long and really really wide data.frames (stored as tibbles).

And I find tibble output sometimes too terse, and the whole "print(n = Inf, width = Inf)" to get full output gets a bit tiresome.

So I define tiny helperf functions for: "print long", "print wide" and "print long and wide"

How do other people deal with the terseness of tibble output?

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