--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Mar 15, 2015 8:06 AM, "Joshua N Pritikin"SittinG <jpri...@pobox.com> wrote:
>
> On Sun, Mar 15, 2015 at 10:18:37PM +1100, Bob Carpenter wrote:
> > That's a good point.
> >
> > Is there any reason not make these #define-ed properties?
> >
> > We tried to stay away from macros/properties, but I see
> > where it'd make sense in this context.
Same. I don't see a problem in introducing a version number macro for the next release.
> > Out of curiosty, what do you need that depends on the version?
>
> The code works in either version but the required #includes are
> different because of the reoganization.
>
> > > On Mar 15, 2015, at 9:47 PM, Joshua N Pritikin <jpri...@pobox.com> wrote:
> > > I see that stan/version.hpp uses `const std::string` instead of
> > > #defines.
> > >
> > > How do I write #if macros that depend on the Stan version so my code
> > > works for both 2.6.0 and 2.6.2?
Unfortunately, there won't be a way to do this with macros because they never existed in the tagged versions of Stan 2.6.0 and 2.6.2.
> Conditional defines would allow people to upgrade OpenMx without
> upgrading StanHeaders and vice versa. It's not a big deal. It just makes
> things a little bit easier for people who don't eagerly track new
> releases.
Do you have a sense of the size of the user base that wouldn't be up for tracking new releases? This would have to be an intersection of Stan and OpenMX users. Although in principle this sounds ok, it may be over engineering the solution. That said, I'm ok with adding a version number macro.
Joshua, mind opening up an issue with a proposed macro or macros? We can have a focused discussion on the implementation on the issue thread.
Well, maybe the bigger problem is that there is a potential CRAN race
condition. Suppose StanHeaders is upgraded first. Then OpenMx will fail
to install until it is updated. Same problem is OpenMx is upgraded
first. So both packages would need simultaneous upgrades on CRAN to
avoid the situation where OpenMx was uninstallable for a short time.