The R Tests Gallery

A collection of testing patterns I've used in R projects.

Examples

Interactions with External Services
Use this pattern to test interactions with external services (like LLMs or other APIs) without making actual calls during testing.
Plumber API
Use this pattern to test a Plumber API you own.

Haven't found what you're looking for?

Tell me what you struggle with in R testing.
Let's create a comprehensive list of examples together!