Profile avatar
smach.masto.machlis.com.ap.brid.gy
Author of Practical R for Mass Communication & Journalism Still ❤️ R after all these years #RStats Can't imagine life without writing Having fun with #GenAI […] [bridged from https://masto.machlis.com/@smach on the fediverse by https://fed.brid.gy/ ]
454 posts 3,034 followers 1 following
Prolific Poster

Hey #NICAR25 presenters! If you have publicly available presentation materials and want them to be included in my searchable list, please enter the info here! https://forms.gle/X9LDwufTUqcy3wW86 (I've been keeping this list since 2020, it's at https://www.machlis.com/nicar/ . May take a few […]

For years I used #R and struggled with Windows path issues—turns out there’s a built-in function I never knew about: normalizePath() in base R! It converts file paths to canonical form & handles slash/backslash confusion […]

The {gtsummary} #RStats 📦"provides an elegant and flexible way to create publication-ready analytical and summary tables. . . [It] summarizes data sets, regression models, and more, using sensible defaults with highly customizable capabilities." https://www.danieldsjoberg.com/gtsummary/ By […]

Hey R Shiny enthusiasts! Any suggestions on resources for jazzing up #RShiny apps for someone who isn't a naturally great designer? (in addition to the bslib docs). I'm not looking content-entry or consultant quality - happy to start at 'a bit spiffier than defaults.' Thanks! #RStats

The {glue} #RStats 📦 's glue_col() function lets you add color to terminal output.

Workshop video on Analyzing 2023 American Community Survey Census data in R led by Kyle Walker (creator of tidycensus) is now on YouTube: https://youtu.be/9a8_p_q4Z34?si=s0dbOg7IDycK9u0c #RStats #RSpatial #DDJ #Census

The {realtalk} #RStats 📦 aims to "make it easy to use common US price indexes in R." It is "mostly a data package". See all available data sets with available_price_indexes() By Ben Zipperer w support of Economic Policy Institute. https://economic.github.io/realtalk/

#OpenAI roadmap: "We will next ship GPT-4.5, the model we called Orion internally, as our last non-chain-of-thought model.... We want AI to 'just work' for you; we realize how complicated our model and product offerings have gotten. "After that, a top goal for us is to unify o-series models and […]

The {ecmwfr} #RStats 📦 is an R interface "to the two European Centre for Medium-Range Weather Forecasts API services. The package provides easy access to all available Data Stores from within R, matching and expanding upon the ECMWF python tools. There's support for the Climate Data Store, the […]

The goal of the {findSVI} #RStats 📦 is "to calculate regional CDC/ATSDR Social Vulnerability Index (SVI) at a geographic level of interest using US census data". Functions include find_svi() and get_census_data(). By Heli Xu & others https://heli-xu.github.io/findSVI/

Vibe is an #OpenSource desktop client (mac, windows, linux) for locally running Whisper to more accurately transcribe or caption videos & audio https://thewh1teagle.github.io/vibe/ Source code: https://github.com/thewh1teagle/vibe/ Easier to use than what I was using before (WhisperDesktop) […]

The {manydata} #RStats 📦 features "many datacubes, each containing many related datasets [about] global governance" such as international trade, health, & environment agreements; as well as "states throughout history". It also includes comparison tools […] [Original post on masto.machlis.com]

Bruges, Belgium taken in 2012. What a beautiful city [#photography ]

The {ProSportsDraftData} #RStats 📦 provides "comprehensive draft data" for the NFL, NBA, and NHL. "It offers access to both historical and current draft data, allowing for detailed analysis and research on player biases and player performance." By Benjamin Ginsburg. On CRAN […]

The {stringr} #RStats 📦str_squish() function takes all the multiple spaces within a character string and "squishes" them down to a single space - plus trims spaces off the beginning and end. SO useful after extracting text from PDFs. And for saving tokens when sending text to an LLM […]

If you missed Kyle Walker's online workshop yesterday on working with 2023 US Census American Community Survey data in #RStats , they said it will be on the SSDAN YouTube channel in a week or so. 🎉 https://www.youtube.com/@ssdan/videos

The {fs} #RStats 📦 "provides a cross-platform, uniform interface to file system operations." 4 function categories deal with paths, files, directories, and links, such as dir_ls() - list files in current dir file_create(path(tmp, "my-file.txt")) By @jimhester @hadleywickham & […]

I wanted to turn a png into an .ico file for one of my local Windows shortcuts. Instead of searching on the Web for a tool or seeing if Photoshop does this (don't think so), I asked #GenAI to make me an R Shiny tool. Claude made a mostly working #Rstats tool, but the resulting .ico colors were […]

Hard to believe I've been retired half a year already! Some thought after the first 6 months: https://nextchapter.machlis.com/posts/2025-02-02-half-a-year-of-retirement/ #NextChapter #Retirement

3 free webinars this month on analyzing US Census data with R! Led by Kyle Walker, creator of the tidycensus #RStats 📦, hosted by University of Michigan online. Walker says he'll cover "new 2023 ACS data; decennial Census data; and mapping with some brand-new interactive tools." Feb 5, 12 & 26 […]

OK I'm officially impressed with OpenAI's new o3-mini-high #LLM for #RStats programming. I asked it to add a "download chat" button to a basic R Shiny chatbot app coded with shiny and shinychat packages. It gave me working code 1st try. 😲 o1 failed. Gemini 2 Advanced failed. Claude failed […]

Think AI can't do anything useful for you? This Google #GenAI experiment waits on the phone for you until a live representative comes on 🤣 https://labs.google.com/search/experiment/9

First part of this @NHSrCommunity video is exploratory data analysis in R Video: https://youtu.be/YFpD7ihUNMk?si=xEg_1r8jnDTl8E44 Code: https://github.com/Simon-W-M/EDA_and_twirly_text/blob/main/EDA_geom_textpath.R #RStats #EDA https://fosstodon.org/@NHSrCommunity/113922359136277575

I ❤️ how I can make a simple Web interface for running Ollama #LLMs locally in R with the {ellmer}, {shiny}, and {shinychat} #RStats 📦s Code fits in a single post! #GenAI library(shiny) library(shinychat) ui <- bslib::page_fluid(chat_ui("chat")) server <- function(input, output, session) { […]

The {sys} #RStats 📦 offers "powerful and reliable tools for running system commands in R." Think of it as a "drop-in replacements for the base system2() function with fine control and consistent behavior across platforms". Includes auto encoding on Windows. By @jeroenooms […]

So now even "let's try to improve cancer survival rates" isn't something 2025 Republicans want government to support? Are people supposed to hold bake sales to fund this research? […]

Wow first time I've really felt an #earthquake! Room shook, I heard noise . . . I asked "What was THAT!" and said "Earthquake!" as a joke. My husband thought maybe it was a huge pile of snow falling off the roof? But no, earthquake! (I slept through an earthquake in Los Angeles one morning […]

Almost finished with my shawl! #crochet (Boring Philadelphia- Washington game this afternoon helped)

There are 4 phases of retirement that “most” people move through in retirement, Dr. Riley Moynes argues in a TEDx talk viewed more than 3 million times. But I’m not sure that's quite as widespread as he claims […]

Playing with #LLMs (what else does one do on a Saturday night?) At lmarena.ai testing extracting event info from a complex format. Very surprised a model besides o1 got it right! It was 'gemini-test'. Interesting! Hope that's available soon, because regular Gemini choked on it, even 2.0. #GenAI

The {rematch2} #RStats 📦 is a “small wrapper on regular expression matching functions regexpr and gregexpr to return the results in tidy data frames.” By @gaborcsardi . On CRAN. https://github.com/r-lib/rematch2#readme #RegExp #RegEx

Encountering a lot of 'most old people are clueless about technology' ageism today, and I am so tired of it.

"AI can assist us to do things more quickly but it does not remove the need for human oversight given the risk of error." - BBC report on its use of #GenAI https://www.bbc.co.uk/mediacentre/2025/articles/update-generative-ai-at-the-bbc

The {wdpa} #RStats 📦 "provides an interface to data provided by Protected Planet," a database of global conservation areas. It has functions to both download - wdpa_fetch() - and clean - wdpa_clean() that data. Results are in sf format for easy mapping. By Jeffrey Hanson […]

UNHCR published its ggplot2 theme and color palettes in their {unhcrthemes} #RStats 📦 https://unhcr-dataviz.github.io/unhcrthemes/ By Cédric Vidonne & Ahmadou Dicko

Along with worries about finances and health insurance, one of the top reasons Americans put off retirement seems to be fear of boredom. That's an important thing to figure out when mulling #retirement ! […]

The {sandpaper} #RStats 📦 aims to "re-imagine" creating lesson websites for Carpentries workshops. It can "take a series of Markdown or RMarkdown files and generate a static website with the features and styling of The Carpentries lessons including customized layouts and callout blocks. Much […]

"Generative AI, when implemented thoughtfully *with teacher support*, can function effectively as a virtual tutor," concludes this World Bank write-up of a #GenAI pilot program in Nigeria. "Learning improvements were striking—about 0.3 standard deviations. To put this into perspective, this is […]

I just added langfuse tracing & analysis to a #GenAI hobby project I'm working on, and IT WAS SO EASY. A few lines of Python code + a free account, and I have SO much data on what's going on - including #LLM costs, which I care about if I make it public someday. https://langfuse.com

Via Kyle Walker: "The latest version of the {mapgl} #rstats package is now released, supporting scrollytelling-style story maps! "Build richly interactive map stories from your R data pipelines using Mapbox or @maplibre as your backend. "Learn how in the new vignette:" […]

The {readMDTable} #RStats 📦 "helps convert raw markdown tables from a string, file, or URL to tibbles." If both raw markdown and HTML are available, "the main benefit of readMDTable [versus {rvest} }is that raw markdown is more lightweight that its HTML-rendered alternative, resulting in less […]

Search U.S. Library of Commerce images with #RStats Code: https://gist.github.com/smach/97a11b8fb15770be97a0e124f7de4c60 (It was snowing yesterday, good time to play with #GenAI as a coding partner)