This package, [r2d3](https://github.com/rstudio/r2d3), should allow you to execute d3.js files in R.
This package, r2d3, should allow you to execute d3.js files in R.