Mauricio Olivares-Gonzalez and Ignacio Sarmiento-Barbieri (from the University of Illinois Urbana- Champaign) have developed an R package that computes the approximate permutation test by Canay and Kamat (2017) for the regression discontinuity design. Below you can download the package and the paper introducing the new test. For additional Stata and R packages, visit the software page here.