Create an R package from demo code.