Hello, someone with limited overall development experience here, working on their first rstan package. Very early versions of what I’m trying to do are working but I’m realizing that I don’t fully understand the folders that rstan_package_skeleton installs that are not part of the “normal” R package folder structure, namely /inst/include and /tools.
From the rstan developer guidelines (http://mc-stan.org/rstantools/articles/developer-guidelines.html) I gather that /inst/include is meant for code chunks that may get reused and I was pointed to the rstanarms package. From there it seemed like reused stan code chunks are left in /src/stan_files and only re-used c++ code chunks are in /inst/include. Is this impression accurate and if I don’t have c++ code chunks (currently only the blank meta_header.hpp file is there) should I delete /inst for now?
In terms of /tools rstanarm only has the make_cc.R file that rstan_package_skeleton() automatically sets up. It seems like the purpose of the file is to make c++ classes from stan files but that’s all I can tell from reading documentation.
I’m sorry for my novice questions, I was just curious about the roles of these folders and what code I might be writing belongs in them (and no one I’m working with has much more experience than I do). If anyone knows of resources that might solve these types of questions in the future I would be glad to have them!
Thanks for your time