Automatically exposing Stan functions in a package is already supported in rstantools
. Any .stanfunctions
files in the package’s inst/stan
directory will have the included functions compiled and exported in the package. This is currently being used by the lgpr
and rmdcev
packages