Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
After converting to
d3v4, I would like to modularize the JS code to resemble Let's Make a D3 Plugin. As an example of this, I have doned3horizonR.d3horizonRis not perfect, but demonstrates how the JS lives in its own separate directory ignored by the R pkg. The JS gets processed, built, and compiled and then moves to theinst/htmlwidgetsfolder for use by the R package. The advantage is we can stick to a "modern" typical JS build and test workflow.See
leafletas another example.Potential Modules
A quick round of code analysis reveals some clear module opportunities.