Toots for danwwilson@rstats.me account

Written by danwwilson :rstats: on 2025-01-29 at 10:46

The irony indeed. https://scholar.social/@ccamara/113911195363266854

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2025-01-21 at 00:25

@josh listening to Computer Future, and really enjoying it. First time listening to Velociraptor and you guys do really well!

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2025-01-20 at 06:33

So maybe the SA government could improve public transport infrastructure so people don’t need as many cars? https://c.im/@ABC/113858917590243796

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2025-01-15 at 04:26

Well done ABC. https://c.im/@ABC/113801586516165048

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2025-01-08 at 22:42

So, I’m trying out Apple Music after struggling to find new and interesting music on Spotify (and seeing that they’re going all in on AI content generation) and I have come across more new music in a week than I did in my efforts to search for stuff I’d enjoy. Time to convince the rest of my family that I don’t want to pay for crappify.

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2025-01-06 at 08:11

@phocks I had an idea about how we might be able to increase the range of vegan products at our supermarkets. We need a bit that searches for vegan products, but does it from a TOR browser to create a range of IPs to look more authentic. A nice little side project 😉

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-12-23 at 22:07

@coolbutuseless any tips on ansi styling data.frames?

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-12-23 at 08:22

[#]rstats I’ve been really loving the {cli} package lately for command line messages like errors and warnings. Anyone got tips on how to incorporate the styling in a custom print.data.frame() function?

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-12-08 at 23:56

We’ve had a few recent cases where for one of our steps we didn’t check the detail of one of those functions which caught us out. (2/4)

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-12-08 at 23:56

So I’ve been thinking about design patterns for targets, and how users can protect themselves from the mistakes we’ve made. For now we’ve come up with the concept of foreground and background information. Things that can change per project should be in the foreground and should be a parameter to the function that creates the target. Things that won’t change can remain in the background and only be adjusted/improved/fixed as you encounter systemic issues with your projects. (3/4)

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-12-08 at 23:56

The other part that supports this, is if you need to customise a function we use an extra_data list object to pass these parameters/objects in as it means you’re not needing to change your function definition every time you need to do a minor customisation for a single project.

Bear in mind that this is probably only helpful if you’re creating targets pipelines that you reuse across numerous (maybe just a few) projects. (4/4)

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-12-08 at 23:56

Time for another {targets} post today. One of the design patterns we’ve used for a long time is to push as much into a function as possible. If it’s a fairly standard step then parameters are limited. There are some steps that we have that we ‘just know’ will need to have the function updated for the project we’re working on so these too have limited parameters. A 🧵#rStats #targets (1/4)

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-12-04 at 23:56

So {targets} is a great package, but sometimes it creates friction when working interactively. So today, I made a little helper function to load a selection of targets. It allows me to bind this to a shortcut key in VSCode that will load all the highlighted targets.

So far, it is going very well for when I am debugging a function and need to load a bunch of targets into memory. #rStats #workflow

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-12-03 at 04:27

I am trying to avoid the following:

myfun <- function(a = VALUE1, b = VALUE2) {
  first_package::myfun(a = a, b = b)
}

It seems silly to redefine the function when I could maybe somehow pass parameters when I re-export it.

Any guidance is welcome (2/2)

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-12-03 at 04:27

[#]rStats hive mind. I am trying to piggyback off a function that I have in another package, but I need to pass some parameters relavant to the package I am importing to. I would love to know how I might be able to do this, and if I can the masked function messages to stop when I load both packages.

the normal call to my function would be myfun(a = "valuel1”, b = "value2”)

In package b I have variables set as:

VALUE1 <- “my first val”

VALUE2 <- “my second val” (1/2)

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-11-18 at 22:31

[#]RStats @jonocarroll I managed to get a ntfy server running behind my tailnet that I can use your very cool {ntfy} package with. Thanks for your time investment in making this happen. 🎉

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-11-08 at 03:29

Friday feels

=> View attached media

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-10-31 at 18:56

[#]rstats did you know there is no need to join bluesky to find #RStats. If you want to move somewhere to find people who use #RStats /#Rlang there is the perfectly good rstats.me server. No starter packs required, find some cool people talking about R. Also, No VC funding to claw back an investment later.

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-10-17 at 00:24

I might have to do a new desk pic today with the monitor that is making its way to me today. @adamhsparks @lwpembleton

=> More informations about this toot | View the thread

Written by danwwilson :rstats: on 2024-10-17 at 00:04

I am currently reviewing some code, and am curious how people balance everything becomes a function vs just write code and let it run. I am familiar with the rule of ‘do it 3 times make a function’ but I have also heard the idea of wrap it in a function and give that a meaningful name. I have seen this latter approach taken to extremes on a recent code base which made it harder to navigate. What’s your approach? #RStats

=> More informations about this toot | View the thread

=> This profile with reblog | Go to danwwilson@rstats.me account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/111193353259202432
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
381.617701 milliseconds
Gemini-to-HTML Time
4.400934 milliseconds

This content has been proxied by September (3851b).