Issues including stan math autodiff functions in R package

This discussion has moved here: