R package to interface with spar library