Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

Michael Chirico

@michaelchirico@econtwitter.net
mastodon 4.7.2
  • Open on econtwitter.net

Economist, data scientist. #rstats e.g. {data.table} {potools} {lintr}. Crosswords & languages.

PHL ✈️ SIN ✈️ SFO

193 Followers
99 Following
19 Posts
Joined November 28, 2022
Joined:
Nov 27, 2022
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 36mo ago

Hey #rstats #rdatatable if you're a {data.table} user please take a look at the new community survey:

https://tinyurl.com/datatable-survey

Great things getting started over at {data.table}...

tinyurl.com
19
1
25
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

Long overdue update of potools on CRAN! Tools for translating R packages.

Starring some wonderful contributions from @hadleywickham@fosstodon.org who graciously suggested+implemented a more modular workflow making distinct translation roles easier to understand + work with.

Workhorses are the new functions po_extract(), po_create() po_compile(), and po_update(). See the two new vignettes (https://cran.r-project.org/web/packages/potools/vignettes/developers.html, https://cran.r-project.org/web/packages/potools/vignettes/translators.html).

Thanks also to @maelle@mastodon.social for trying it out!

https://cran.r-project.org/web/packages/potools/index.html

cran.r-project.org
12
0
5
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 36mo ago

Dedicated website for #rstats translations is looking slick 😀

https://contributor.r-project.org/translations/

translations

Home – translations

10
0
6
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago
Replying to
base #rstats has %||% now! https://github.com/r-devel/r-svn/commit/aa23547f2c5a80752194647c811fa2c1433d43b9
GitHub

add %||% to base · r-devel/r-svn@aa23547

git-svn-id: https://svn.r-project.org/R/trunk@85410 00db46b3-68df-0310-9c12-caf00c1e9a41

9
1
6
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

A very funny joke the #rstats architects pulled off is to have an SEXPTYPE called LANGSXP, an R function called is.language(), and for them not to be the same thing

6
1
2
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 36mo ago

Some notes about reshape::rename() vs. dplyr::rename() for anyone refactoring #rstats Ancient Code:

- The API is reversed. reshape does c(old = "new"), dplyr works like c(new = "old") or 'new = old', a la mutate()
- dplyr errors by default for unfound names, so a robust implementation needs dplyr::rename(x, any_of(new = old)) if 'old' might not exist on input
- dplyr errors instead of creating duplicate names. I don't see an easy way around this, but likely mutate() was intended anyway.

5
0
1
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

TFW you removed an innocuous importFrom(pkg, foo) but the implied loadNamespace("pkg") was actually letting 'pkg' define its #rstats S4 generic on top of base::serialize() so now your serialize() calls change implicitly from pkg::serialize() to base::serialize() 😵‍💫😵‍💫😵‍💫

3
1
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 36mo ago

@maelle@mastodon.social @Lluis_Revilla@fosstodon.org @r_data_table@fosstodon.org yep... and there's likely to be funding for a new push to other major languages e.g. Spanish. Thanks to the translation team!!

3
0
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

Ah, fun. encodeString() and sprintf() can be faster than paste0() for '-wrapping your strings... if the inputs are huge.

2
0
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

@MikeMahoney218@fosstodon.org we want all(c(X, Y)) == all(X) && all(Y), the behavior of all(NULL) is required here for the empty edge case X=logical(0). Maybe the surprising part is NULL getting cast to as.logical(NULL) = logical(0).

2
0
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

@vincentab@fosstodon.org it's active till December 1!!

1
0
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

@sckottie@fosstodon.org

1
0
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

@dgkf@fosstodon.org @eddelbuettel@mastodon.social developer.r-project.org is the closest I can think of

1
0
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

@nicoj@mastodon.online @pglpm@emacs.ch I just call it the coalesce operator

1
0
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 36mo ago

maintenance update 0.3.3 of #rstats {geohashTools} is on CRAN

Main purpose is to remove references to {rgdal} now that it's off CRAN (it was previously moved to Suggests). Thanks Roger Bivand for your many years of service!

https://cran.r-project.org/web/packages/geohashTools/index.html

geohashTools: Tools for Working with Geohashes
cran.r-project.org

geohashTools: Tools for Working with Geohashes

Tools for working with Gustavo Niemeyer

1
0
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago
Replying to
How could I omit make_linter_from_xpath()? One of those functions I can't believe was missing! I'm using it all the time now -- a boilerplate killer, streamlining the path from lint logic --> linted code.
0
0
0
0
Open post
Michael Chirico @michaelchirico@econtwitter.net
· 35mo ago

Could I request a fosstodon server invite from someone? Seems this here econtwitter server is due to sunset 🥲

0
0
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 03:27:04 UTC