No matching items| www.rostrum.blog
Would you buy this as a tasteful wallpaper?| www.rostrum.blog
Graphic design is my passion.| www.rostrum.blog
Graphic design is my passion.| www.rostrum.blog
Graphic design is my passion. tl;dr As a test, I uploaded an R Shiny app to itch.io, which is a platform for sharing indie games. It worked. Scratching an itch.io Where can you host your Shiny app for free? Typical options are services like shinyapps.io or Connect Cloud by Posit. I have another idea: itch.io is a web-based platform known for hosting indie videogames, assets and other miscellaneous game-adjacent tools1. Developers can upload file bundles for users to download, or they can serv...| rostrum.blog
You sunk my battleship! tl;dr Use {sortable} in a {shiny} app to build card games, maybe? I mocked up a demo and made it available on the web with {shinylive}. Balatro LocalThunk1—the anonymous creator of Balatro, the hit poker-inspired roguelike videogame2—revealed recently that 11,000 years of gameplay have been sunk into the game. The average productivity of the universe has continued to drop now that the game is available on mobile. I am one of the suckers that made the purchase. As a...| rostrum.blog
Fast blue hedgehog man in Little Pixel Fun Zone, Act 1 (original art by the author). tl;dr I made a simple toy pixel-editor for the browser, which helped me learn about reacting to user clicks and implementing undo/redo in {shiny}. Just browsing The {pixeltrix} package is a local pixel editor you can run from the R console1. It’s intentionally simple. You start a graphics device and click the squares (‘pixels’), cycling through your provided colour palette. You’re returned a little pi...| rostrum.blog
This image has been edited. With apologies. tl;dr Make RStudio restart itself. Perpetually. Note This post contains April Fools’ Day content. Passing the torch Jenny Bryan once said: If the first line of your R script is rm(list = ls()) I will come into your office and SET YOUR COMPUTER ON FIRE 🔥. The objects in your R environment are wicked little imps whose only motivation is to deceive you. They must be destroyed. Frequently. But rm(list = ls()) isn’t enough to start a new session w...| rostrum.blog
tl;dr A quick and dirty R function to assign abstracts to sifters. Assign me up I hacked together a function to assign submitted conference abstracts to sifters for assessment. At its simplest you give it two dataframes: one with a row per abstract, one with a row per sifter. You receive back a list, one element per sifter, with the abstracts they’ve been assigned. There were several criteria that complicated things. The function: tries to make assignment counts equal between sifters where ...| rostrum.blog
tl;dr The rise of R ‘help’ websites written by AI is predatory and shameless. Things will only get worse. Chatbottom of the barrel Regular readers know this for sure: I’m not an R expert. I don’t just ‘know’ stuff. I’m DuckGoGoing ‘how to do x in r’ every 10 minutes. In doing this, I’ve noticed a trend that I want to complain about: I’ve found a few suspicious ‘help websites’ for R appearing high up the search rankings. Why ‘suspicious’? They’re clearly written...| rostrum.blog
tl;dr You can use {cli} and {rlang} to help create a helpful error-handling function that can prevent an eclipse. Check one two I’ve been building an ‘error helper’ function1 called check_class(). You put it inside another function to check if the user has supplied arguments of the expected class. Surprise. I did this to provide richer, more informative error output compared to a simple if () stop(). But it has a few features I wanted to record here for my own reference. In particular, ...| rostrum.blog
tl;dr Some (lesser-known?) arguments to some common base-R functions. Getting argumentative There’s been a recent glut of posts about useful base-R functions, like the ones by Maëlle, Isabella and Yihui. I bring you a twist on the theme. Four useful arguments from four everyday base functions: max.level in str() n in print() include.only in library() drop in `[` Feel free to move on if you know all of these. Structural integrity str() prints an object’s structure. It can be especially he...| rostrum.blog
tl;dr An update about updates to {a11ytables}. Also maybe I should rewrite the whole thing from scratch, lol. Birth Right so, I made the {a11ytables} R package to help create government statistics publications that meet official best practice standards. You may be interested in a talk I did about it at EARL 2022. I originally made it for me and my team so we could publish accessible spreadsheets to GOV.UK. It seems to have been picked up by a number of other government departments, so I’ve ...| rostrum.blog
tl;dr A demo post to test out embedded WebR chunks that source a non-CRAN R package. Readers can edit and re-run code later in this blog post, entirely within the browser. World Wide WebR WebR lets you run R code in a browser with no need for a server, thanks in large part to George Stagg’s efforts. And these days you can embed editable R chunks into Quarto documents, thanks to James Balamuta’s quarto-webr extension. I’ve written before about how powerful this could be for demonstrating...| rostrum.blog
tl;dr Taking a moment to thank Yihui, who has unwittingly made possible the rise of Reproducible Analytical Pipelines (RAP). Hooray for Yihui Yihui Xie is an R legend. He was, however, recently laid off by his employers at Posit. I’ve personally benefited a great deal from Yihui’s work, from writing reproducible presentations with {xaringan} to producing the original version of this blog with {blogdown}. At a grander scale, Yihui’s contributions to the R ecosystem have had a lasting and...| rostrum.blog
Lotad: best Pokémon. No contest. tl;dr Use the {eyedroppeR} package by Dan Oehm if you want to sample a colour from an image using R. You don’t need to use my hastily-created function. Top of the drops A colleague on Slack asked about ‘eyedropper’ tools; where you can click a point on an image and have its colour returned. Very handy. I couldn’t recall seeing an eyedrop tool built with R. How hard could it be to make one? I thought immediately of the locator() function from base R, w...| rostrum.blog
This is a preview. tl;dr I extracted data from the disassembled code of Pokémon Red to create an interactive graph of the game’s locations and their connections. You can jump to the graph below. Note Coincidentally, a few days after posting this, someone posted to Hacker News a non-R implementation by Peter Hajas from a few years ago. I should’ve guessed! Kanto I wrote a while back about using the wonderful locator() function to extract coordinates from fictitious maps. In that example I...| rostrum.blog