@johnmackintosh@fosstodon.org
@johnmackintosh@fosstodon.org avatar

johnmackintosh

@johnmackintosh@fosstodon.org

Scottish Highlands

mainly :rstats: #rstats #SQL and data related

packages {runcharter}, {cusumcharter}, {spccharter}, {patientcounter} & {rockthemes}

Author of introductory SQL course: >100K students

Senior Fellow NHS-R

Quality & Measurement for Improvement , Business Intelligence and Public Health Intelligence

I reserve the right to toot about rock music and /or boost things that amuse me.
Basically - the same rubbish patter as my old Twitter account, in better surroundings

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

anze3db, to random
@anze3db@fosstodon.org avatar

I've just added the R programming language to Fedidevs! You can now find 194 programmers on fedidevs!

Thank you @smach for the suggestion! 💙

https://fedidevs.com/rstats

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@anze3db @TimTeaFan @smach

Another stupid question
RStats or rstats?

The FAQ suggests the latter, but a lot of folk have RStats in their profile

terence, to random
@terence@fosstodon.org avatar

Is there a good, up-to-date guide to set VSCode up for ? I keep trying but bloody radian won't work.

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@terence
Not at as recent as I thought, but might help you..

https://johnmackintosh.net/blog/2023-02-04-vsc/

johnmackintosh, to random
@johnmackintosh@fosstodon.org avatar

My first steps with the new programming interface in

new programming with data.table | Data By John

https://johnmackintosh.net/blog/2024-02-05-dt-programming/

brodriguesco, to python
@brodriguesco@fosstodon.org avatar

No disrespect to Wes McKinney (I don’t like , but I personally could have never done something like that myself), but there’s literally 0 reason (apart from running legacy code) to use now when there’s on . With , is still the GOAT

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@brodriguesco I don't know enough about any of this to dispute it.

Excellent meme though 😄

johnmackintosh, to random
@johnmackintosh@fosstodon.org avatar

OK, I'm not very experienced with Linux, but having upgraded my old laptop to the latest edition of Mint, I decided to give this a go.

I installed the tidyverse on Ubuntu a long time ago and it took ages

r2u on my new install was light years ahead of my previous experience. < 2 mins to install 100 packages /imports for the tidyverse

data.table and collapse also installed in super fast time.

@eddelbuettel - this is great, and thanks for the clear instructions :)

https://github.com/eddelbuettel/r2u

stevensanderson, (edited ) to random
@stevensanderson@mstdn.social avatar

My year in review for 2023, LinkedIn review tomorrow.

#R

Post: https://www.spsanderson.com/year_review_2023.html

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@stevensanderson
That's a huge amount of work - well done Steven

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

If you're planning on writing a 📖 here's how many copies you might sell in a year: 70 copies from Amazon (starting june), mostly in USA (God bless USA), and 90 on Leanpub (started selling there in March). Not that bad given the book is available for free online and I'm a nobody!

image/jpeg
image/jpeg

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@brodriguesco There should be at at least one from Scotland 😉

djnavarro, to random
@djnavarro@hachyderm.io avatar

I was reading a thread about how the norms around blog posts have changed over the years, where “writing something up a blog post” now has a kind of formality to it that it didn’t have 20 years ago (yes, I did in fact have a blog in 2003), which in turn makes blogging feel more like work than joy. This seems like a genuine cultural loss.

So okay. Maybe I can do my part next year. And maybe my last post was a sign that my 2024 blogging resolution should be “I am here to fuck spiders”

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@djnavarro

Please never change, I love your blog posts.

I love it when people exhibit some actual personality in their writing.

I'm not sure how well it pans out career wise ( assuming that's the real reason we're all blogging in the rstats world) from my perspective - badly - but at least I can go back and read my posts and enjoy it.

I started out in "educator" mode, but at some point, it all started to feel like too much work. Still does. So now they are glorified notes to self.

johnmackintosh, to random
@johnmackintosh@fosstodon.org avatar

Saw a post bemoaning the lack of USB ports on laptops and I'll add lack of ethernet ports to the list.

Attempts to speed up an update by plugging directly to the router have been doomed by lack of said port on the laptop itself..

I don't actually think I could take this pishy wee thing to a meeting and be productive - aside from the lack of ports, the tiny screen renders RStudio / Excel/ SSMS or any other data related tool barely useable.
A desk with monitors and dock is a minimal requirement

johnmackintosh, to random
@johnmackintosh@fosstodon.org avatar

I hereby add purrr::walk (and variants) to my list of all time great R functions.

That puts it along such exalted company as ggplot2 's facet_wrap() and data.table's [ , .N, by]

eddelbuettel, to random
@eddelbuettel@mastodon.social avatar

Dang. %||% coming to base R in R 4.4.0 next April.

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@teunbrand @ERDonnachie @eddelbuettel

Ah, so it's kind of like coalesce() then?
That will be quite handy, for sure

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

Touched some 🍂🍁 today. Felt good.

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@hrbrmstr
Looks like it could be right here in the Highlands.

Beautiful.

odr_k4tana, to random

peeps: is there any way that allows me to use objects from my rstudio environment to render a quarto doc or do I need to re-run everything from scratch to render a document?

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@odr_k4tana if you run it as a background job, you get the option to include objects in your global environment

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@odr_k4tana

You might need to set up a short script to render your quarto file ( for a markdown doc, I'd use the rmarkdown::render() function -there will be a similar function for quarto)

You'll need to ensure your global objects are already in place.

Activate your script, click on Background Jobs tab in RStudio, click on Start Background Job, and it should pick up the correct script. You then have the option to tick the box to run the job with the copy of the global environment.

johnmackintosh, (edited )
@johnmackintosh@fosstodon.org avatar

@odr_k4tana

Perhaps you could also look at {targets}, although, fair warning, it might lead to an unhealthy obsession (been using it solidly for over a year now, fairly life changing as far as R is concerned)

Edit : the beauty of targets is it only runs what it needs to.
So if your source data is updated, it might rerun the entire pipeline.
If only a small portion changes (e.g. you change a function definition) then only objects downstream from that function need updating. All done for you.

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@odr_k4tana
I have a few introductory posts about it on my blog (you'll find the link on my profile), including a link to a repo where you can try it out on a simple / nonsensical project.

Or just ask questions here, there are quite a few {targets} fans on here now :)

brodriguesco, to datascience
@brodriguesco@fosstodon.org avatar

I'm really happy to be speaking at the NHS-R conference on Wednesday 11th October 2023! I'll talk about how to build data science projects that are reproducible!To sign up https://nhsrcommunity.com/events/

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@brodriguesco Brilliant!

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

As promised, here's the blog post that'll help you navigate this year's "foliage" project: https://rud.is/b/2023/09/09/foliage-2023/

Along w/R animated gif code, the GH repo (https://github.com/hrbrmstr/foliage/tree/master) contains

Hit me up if you make a Shiny version so I can 🔗 to it.

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@hrbrmstr @observablehq

Beautiful plots, especially that observable one 😍

ramikrispin, to random
@ramikrispin@mstdn.social avatar

Metallica at their best 🤘🏼

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@ramikrispin

Had to make do with watching them in the cinema. Was still great though, and the sound was HUGE.

johnmackintosh, to discworld
@johnmackintosh@fosstodon.org avatar

Just found my Terry Pratchett stash.
Some classics in here, although Guards! Guards! is my favourite.

ramikrispin, to python
@ramikrispin@mstdn.social avatar

All the discussions about how to use in remind me of this old meme about how to eat Pizza with Pineapple 🤣

Full disclaimer: I am just joking 🙃

video/mp4

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@ramikrispin

I would follow this man to the ends of the earth *

  • down the road a bit
johnmackintosh, to random
@johnmackintosh@fosstodon.org avatar

While I dig knowing some base R, I do increasingly find myself using {fs} for anything to do with file manipulation.

The fact that filenames in the console display in different colours according to whether they are directories / files /different file types is a real boon.

It offers fine grained control over the detail you can determine about your files, and if you want to purrrr::walk() over them and modify properties, you can do that too.

Working with files?
For less {ffs}, use {fs}

johnmackintosh, to random
@johnmackintosh@fosstodon.org avatar

Looks like I have a slot to talk about {targets} and RAP at the NHS-R conf in October.

On one hand - yay!

On another - oh gawd.

Lessons learned and how to break a large project down into more manageable chunks will definitely be the main thrust, I think.

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

In the unlikely event you were looking forward to this - I've had to withdraw.

Gutted, but too much stuff going in the real / non R world meant I had to do it.

Maybe next year, or maybe I'll just write a blog post and be done with it (but that won't be any time soon).

On the plus side, @brodriguesco is doing what will undoubtedly be a much better / longer / more informative talk about RAP on the same day, so it's a win win all round.

johnmackintosh,
@johnmackintosh@fosstodon.org avatar

@brodriguesco I managed to see your presentation, it was great! Will be sharing those slides with my colleagues (and the video too, once it hits the NHS-R YouTube)

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