[moved to stan-dev]
> On Dec 14, 2015, at 4:24 PM, Ben Goodrich <
goodri...@gmail.com> wrote:
>
> On Monday, December 14, 2015 at 2:47:35 PM UTC-5, Bob Carpenter wrote:
> My goal is to put everything in Stan itself so that our
> interfaces are consistent and can be described in a single
> modeling manual.
>
> For mathematical functions, estimation algorithms, and other things that actually involve modeling, that usually makes sense from a cost-benefit perspective. But this is basically copying and pasting of text, which is a domain that is already well-handled by any scripting language. I wrote it for rstan
>
>
https://github.com/stan-dev/rstan/blob/develop/rstan/rstan/R/stanc.R#L71
>
> in a few minutes because it saved me many minutes writing the .stan files for rstanarm. It's been suggested for stanc before and the impression I got was that it would be a ton of work to implement.
We were originally discussing plumbing the C++-like preprocessor
through to allow macros, etc. But we scaled back to just wanting
to do includes of the kind Ben included in RStan 2.8.x.
I understand that some things are easy to implement in R and that
nobody's patient enough to implement them in C or wait until someone
else does.
My concern is that with RStan drifting at the language level, there
are programs that will run in RStan that won't run elsewhere.
How are paths handled with the includes? That is, if I say
#include "foo.stan"
where does RStan look for the "foo.stan" file?
- Bob