I've already used devtools to create my package skeleton, then added a bunch of R code, metadata, documentation, etc. I would like to use rstan within this package. I understand that rstan::rstan.package.skeleton creates a package skeleton to facilitate this. So what is the best practice for augmented an existing package with the structure necessary to use rstan from that package? Thank you.
I would say to use rstan.package.skeleton
to create the skeleton in a temporary directory and then copy the relevant stuff it creates into the package you created by devtools. This would include
cleanup
and cleanup.win
in the root of the directorytools
directoryexec
directoryinst/chunks
subdirectorysrc
directoryR/stanmodels.R
fileDESCRIPTION
file in the root of the directoryFor the DESCRIPTION
file, you may just have to combine it by hand with whatever DESCRIPTION
file you have currently.