R

Simple Shiny App for Gift Exchange Drawing

‘Tis the season! In this article, I’d like to share how I used a smattering of R and some free online services to overcome a surprisingly tricky holiday speedbump. The “Problem” Every year, I, my brother, my sister, and our spouses draw names for Christmas gifts (mostly because we’d all rather buy presents for each others’ kids). This process has just a few requirements: Each person should draw the name of another person in the “gift pool” randomly.

Continue reading

Rustbind

I’ve mentioned in other posts that I’ve been learning the Rust programming language, with the explicit intention of implementing some R functionality in Rust for performance gains. I discuss this rationale in more detail in THIS blog post. In that post, I discuss the rustbind project, where I explore strategies for calling Rust code in an R package. The goal of that project is to provide a straightforward set of patterns that I (and other developers) can leverage for integrating Rust into future R projects.

Continue reading

Implementing R Functions in Rust with [extendr]

I’ve recently (since the beginning of 2021) been trying my hand learning and using Rust, and so far it has been a really good experience. Rust has a lot to recommend it, including top-notch tooling, inherent memory safety, and blazing speed. That last part comes from the fact that Rust is a compiled, systems programming language and was the inspiration for picking up Rust in the first place. You see, I absolutely love R.

Continue reading

Advent of Code 2020 - Day 25

In the spirit of the holidays (and programming), I’ll be posting my solutions to the Advent of Code 2020 puzzles here, at least one day after they’re posted (no spoilers!). I’ll be implementing the solutions in R because, well, that’s what I like! What I won’t be doing is posting any of the actual answers, just the reasoning behind them. Also, as a general convention, whenever the puzzle has downloadable input, I’m saving it in a file named input.

Continue reading

Advent of Code 2020 - Day 24

In the spirit of the holidays (and programming), I’ll be posting my solutions to the Advent of Code 2020 puzzles here, at least one day after they’re posted (no spoilers!). I’ll be implementing the solutions in R because, well, that’s what I like! What I won’t be doing is posting any of the actual answers, just the reasoning behind them. Also, as a general convention, whenever the puzzle has downloadable input, I’m saving it in a file named input.

Continue reading

Advent of Code 2020 - Day 23

In the spirit of the holidays (and programming), I’ll be posting my solutions to the Advent of Code 2020 puzzles here, at least one day after they’re posted (no spoilers!). I’ll be implementing the solutions in R because, well, that’s what I like! What I won’t be doing is posting any of the actual answers, just the reasoning behind them. Also, as a general convention, whenever the puzzle has downloadable input, I’m saving it in a file named input.

Continue reading

Advent of Code 2020 - Day 22

In the spirit of the holidays (and programming), I’ll be posting my solutions to the Advent of Code 2020 puzzles here, at least one day after they’re posted (no spoilers!). I’ll be implementing the solutions in R because, well, that’s what I like! What I won’t be doing is posting any of the actual answers, just the reasoning behind them. Also, as a general convention, whenever the puzzle has downloadable input, I’m saving it in a file named input.

Continue reading

Advent of Code 2020 - Day 21

In the spirit of the holidays (and programming), I’ll be posting my solutions to the Advent of Code 2020 puzzles here, at least one day after they’re posted (no spoilers!). I’ll be implementing the solutions in R because, well, that’s what I like! What I won’t be doing is posting any of the actual answers, just the reasoning behind them. Also, as a general convention, whenever the puzzle has downloadable input, I’m saving it in a file named input.

Continue reading

Advent of Code 2020 - Day 20

In the spirit of the holidays (and programming), I’ll be posting my solutions to the Advent of Code 2020 puzzles here, at least one day after they’re posted (no spoilers!). I’ll be implementing the solutions in R because, well, that’s what I like! What I won’t be doing is posting any of the actual answers, just the reasoning behind them. Also, as a general convention, whenever the puzzle has downloadable input, I’m saving it in a file named input.

Continue reading

Advent of Code 2020 - Day 19

In the spirit of the holidays (and programming), I’ll be posting my solutions to the Advent of Code 2020 puzzles here, at least one day after they’re posted (no spoilers!). I’ll be implementing the solutions in R because, well, that’s what I like! What I won’t be doing is posting any of the actual answers, just the reasoning behind them. Also, as a general convention, whenever the puzzle has downloadable input, I’m saving it in a file named input.

Continue reading