Create an R package

This is the R package part.