The goal of defender is to do static code analysis on other R packages to check for potential security risks and best practices. It provides checks on multiple levels:

  1. [x] static code analysis without installing the package
  2. [ ] more thorough but potentially dangerous checks with installation / in Docker container

The checks do not tell you whether something is harmful but rather they flag code that you should double-check before running / loading the package.


You can install defender from github with:



  • Ildi Czeller @czeildi
  • Karthik Ram @karthik
  • Bob Rudis @hrbrmstr
  • Kara Woo @karawoo