Make an R package from the demo code.