Skip to content

ryanbthomas/hazmat

Repository files navigation

hazmat

Lifecycle: experimental CRAN status Travis build status Codecov test coverage AppVeyor build status

The goal of hazmat is to provide a simple way for educators, and other folks that need to run a lot of other people’s code, to have some confidence that there aren’t any unexpected scary R snippets.

This package was motivated by this exchange on twitter.

Installation

# install.packages("devtools")
devtools::install_github("actuarialvoodoo/hazmat")

Usage

Currently, hazmat supports searching individual files or all R/Rmd files in a folder for the following hazardous code snippets:

  • setwd
  • system
  • rm(ls = ls()).
library(hazmat)
## basic example code

screen_folder("examples")
#> == File: examples/test_file.R ==
#> 🔥 4:     rm(ls = ls())
#> 🔔 8:     system('pwd')

Please note that the ‘hazmat’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages