The R Inferno Song (Teenage Dirtbag Parody)

Описание к видео The R Inferno Song (Teenage Dirtbag Parody)

A parody of Teenage Dirtbag featuring what you should not do when creating reproducible scripts using R!

Inspired by
Jenny Bryan's post: https://www.tidyverse.org/blog/2017/1...
Patrick Burns's R Inferno book: https://www.burns-stat.com/documents/...

------

Huge thanks to the staff and students of Maynooth University.

------

Lyrics:

Today is the day
I’ve been preparing for this
Test for so long
I’m ready to show my brains

In R Studio
Just open a script
What if your workspace’s dirty?
I’d better rm(list = ls()) for you

‘Cause I like to View my data, baby
Yeah I like the double for loops, baby
Export all my objects globally, maybe… for you. Ooh

Just got my results
Guess my code wasn’t that good
Won’t you agree? | A good start with setwd
Why are you afraid
Of objects I’ve made
My very own c, dim and names
They’re different, but all the same

‘Cause I like to View my data, baby
Yeah I like the double for loops, baby
Attach all my data frames here, maybe… for you. Ooh

Oh yeah… R hell
No, I don’t type TRUE I just type T
Oh yeah… R hell
Oh, round(sqrt(unlist(as.numeric(x))))

Just let me install
These packages for you, see these names are too long
Let’s sort them out, and in a blink of an eye
A week passes by
Then I read my code again
I can’t understand a damn thing

These are things you shouldn’t put in your script, baby
They can get your computer on fire, maybe
Follow best-practice coding baby, in your script. Ooh
Ooh yeah… R hell
No, I don’t type TRUE I just type T
Oh yeah… R hell
Oh, round(sqrt(unlist(as.numeric(x))))

Комментарии

Информация по комментариям в разработке