Mutator icon

Mutator

Open-source R package for mutation testing that helps development teams improve code quality through automated code mutation.

About Mutator

Mutator is an open-source R package for mutation testing. It mutates source code and runs tests to evaluate test suite effectiveness, reporting mutation scores, surviving mutants, and killed mutants [citation:18][citation:27].

The package supports testthat, tinytest, and installed-tests strategies, with coverage-guided testing, parallel execution, and CRAN mode. It includes a GitHub Actions workflow for continuous integration, allowing teams to fail CI below a mutation score threshold. Mutator is available on CRAN [citation:27].

What it does

Mutation testingMutate R code and run tests to evaluate effectiveness.
Coverage-guided testingRun only tests that exercise mutated lines.
Parallel executionSpeed up mutation testing with multiple cores.
CRAN modeRun the same tests CRAN would run.
GitHub Actions integrationReusable CI workflow.
Detailed reportingMutation scores, surviving mutants, and phase durations.

Requirements & licence

Runs on Windows, macOS, Linux
InternetWorks offline
System requirementsR environment
LicenceOpen source
Source codeSource code is available
DistributionOfficial publisher download
Last updated21 Nov 2026
SupportCommunity or self-service
GitHub issues, documentation
DocumentationRead the user guide

Installation

  1. Install from CRAN with install.packages(\mutator\")
  2. Load the library
  3. Run mutate_file or mutate_package on your code
  4. Review the mutation score and surviving mutants"

Get trained on Mutator

Want yourself or your team trained to use Mutator properly? Tell us and we will arrange a trainer — online or in person.

Do you teach Mutator? Become a trainer.

Reviews

No reviews yet. If you have used Mutator, your experience helps others decide.

Sign in to write a review.

Publisher

GitHub

GitHub

A web platform for hosting code, collaborating and automating software delivery, with built-in AI via Copilot.

1 view
Free plan

Cloudflare

Cloudflare

Web security and performance platform with DNS, CDN, DDoS protection and a free tier for websites.

Free plan

Google Cloud

Google

Cloud computing platform offering compute, storage, databases, AI and developer services on a pay-as-you-go basis.

Free plan

Datadog

Datadog

Cloud monitoring and analytics platform for infrastructure, applications, logs and security.

Contact for price
FreeMutator
Request a quote