R package for bonds