R code to complement the Cstar library for ADMB