Eric Leung
@erictleung.bsky.social
860 followers 470 following 65 posts
marketing data scientist, generalist, math and library enthusiast, data scientist of the third kind, loves good stationary and pens, low tech enthusiast, open source tinkerer, opinions = mine #rstats
Posts Media Videos Starter Packs
Pinned
erictleung.bsky.social
hello world!

lil about me, I'm a former computational biologist, working as a data scientist in media and entertainment marketing, and I like getting better at my tools and share those learnings.

I also love good stationary and fountain pens.
erictleung.bsky.social
i guess they could be useful to be consistent with specifying different quotes, instead of remembering which quotes need to be escaped etc.

either way, it's a "the more you know" kind of thing built into R
erictleung.bsky.social
recently learned the sQuote() and dQuote() R functions

> cat("distinguish plain", sQuote("single"), "and", dQuote("double"), "quotes")
distinguish plain ‘single’ and “double” quotes
> cat("distinguish between 'single' and \"double\" quotes")
distinguish between 'single' and "double" quotes

#RStats
erictleung.bsky.social
for fans of mcelreath's statistical rethinking book, it now has a wikipedia page en.wikipedia.org/wiki/Statist...
Statistical Rethinking - Wikipedia
en.wikipedia.org
erictleung.bsky.social
thought I understood f-strings enough, untill I took this lil quiz. humbled me real quick fstrings.wtf
fstrings.wtf
Reposted by Eric Leung
libbyheeren.bsky.social
If you ask me for advice, the answer I give you will almost always be to reach out and talk to people. Not to read blog posts or watch youtube videos, though those are wonderful resources, but to meet with & talk to actual humans. It's not easy, and it takes time and effort, but it's the way #databs
erictleung.bsky.social
been dragging my feet on organizing my digital folders after finally finding this framework for organizing your digital.

in theory, i really like it. but with any digital cleaning, easier said than done.

anyone else have other systems they use to organize your life?

johnnydecimal.com
A system to organise your life
Johnny.Decimal is a system to organise your life. Find things, quickly, with more confidence, and less stress. It's free to use and the concepts are the same at home or work.
johnnydecimal.com
erictleung.bsky.social
i've been writing sql code for a while now, but yesterday i learned the acronym CTAS, which stands for "create table as select"
erictleung.bsky.social
been trying to get into using vscode a bit more, and had some of the keyboard shortcuts interfere with each other.

took me a bit to figure it out, but in case anyone else is having issues with it, go to File > Preferences > Keyboard Shortcuts menu

code.visualstudio.com/docs/configu...
Keyboard shortcuts for Visual Studio Code
Here you will find the complete list of keyboard shortcuts for Visual Studio Code and how to change them.
code.visualstudio.com
Reposted by Eric Leung
randyau.com
The #dataBS (Data Behind the Scenes) Conference Call for speakers is out! We're gonna do this!!

All online, single track, free to attend. Come talk about your messy experiences doing data stuff. At work, personal projects, whatever. A space to commiserate about nerdy things!

bit.ly/dataBSconf-cfs
Data Behind the Scenes Conf - Call for Speakers
What This Conference Is About "Data, Behind the Scenes" is a (free) online-only, single track conference centered on the real stories of data work from the folks in the trenches. We’re not here for th...
bit.ly
Reposted by Eric Leung
libbyheeren.bsky.social
So freaking excited to have Cat Hicks on the Hangout tomorrow. She's keynoting at posit conf, too ✨ Go register and I'll see you there!! #databs

Event:
Posit Data Science Hangout with Cat Hicks
Thursday June 26th 2025 at 12PM Eastern/9am Pacific
Register for the Hangout event series at pos.it/dsh
Promotional graphic for the Posit Data Science Hangout featuring Cat Hicks, scheduled for June 26th, 2025 at 12 PM Eastern. The image shows Cat Hicks in front of a bright yellow background, wearing a patterned jacket and looking confidently at the camera. The left side of the graphic displays the date “26 JUN 2025,” and below the image is a short description mentioning Cat’s work with Catharsis Consulting and her expertise in the psychology of software teams.
erictleung.bsky.social
so true. I've been doing the over documentation for a bit, but still working on over communicating
erictleung.bsky.social
better to over communicate than assume when working across teams
erictleung.bsky.social
i spent a whole day trying to get 5 lines of code to run properly. never have i had such a sigh of relief that it finally worked
erictleung.bsky.social
following up on this, my problems is using recipes and workflows, and how parity between Spark and R is still being worked on and/or features even possible stackoverflow.com/a/68324650/2... but good to know that modeling is fine with parsnip tho!
Tidymodels + Spark
I'm trying to develop a simple logistic regression model using Tidymodels with the Spark engine. My code works fine when I specify set_engine = "glm", but fails when I attempt to set the
stackoverflow.com
erictleung.bsky.social
ah yes yes, if it wasn't clear, i was pleasantly surprised to have this feature! thanks for your team's work on making these cool user experience conveniences for us data people 🙌
erictleung.bsky.social
woah, when did RStudio gain this functionality that when you wait for autocomplete to finish, it'll show you a preview of that data object that it is suggesting in the autocomplete?? #RStats
screenshot of a coding integrated development environment showing an autocomplete suggestion, along with a preview of the underlying object
erictleung.bsky.social
very cool! didn't know of this package. might be useful after training indeed. yeah, my problem is on the training side of things. thanks for sharing!
erictleung.bsky.social
oh interesting, I could give it a try and see. thanks for pointing this out! wasn't aware of them nor noticed them in the documentation