shp2gen R script that imports a shape file (with extension .shp) and exports a file in ArcInfo generate format (with extension .gen).