The goal of the precinctsopenelex R package is to provide a number of helper functions designed to aid in creating precinct-level election results datasets to match the structure and format used by the OpenElections project.
It is currently under development. (Initial documentation.)
An initial walkthrough vignette on how to use the package is available here.