how to get the version number of CmdStan

14 views
Skip to first unread message

Robert Grant

unread,
Feb 26, 2016, 6:29:01 PM2/26/16
to stan development mailing list
I want to check the version number of the user's CmdStan from inside StataStan (to handle print vs stansummary, but probably other stuff too in due course). I could get this from the name of the stan_* folder, but that means echoing ls / dir to a text file, etc etc etc... maybe there's a quick way to do it... any ideas?

Ben Goodrich

unread,
Feb 26, 2016, 7:27:43 PM2/26/16
to stan development mailing list
On Friday, February 26, 2016 at 6:29:01 PM UTC-5, Robert Grant wrote:
I want to check the version number of the user's CmdStan from inside StataStan (to handle print vs stansummary, but probably other stuff too in due course). I could get this from the name of the stan_* folder, but that means echoing ls / dir to a text file, etc etc etc... maybe there's a quick way to do it... any ideas?

goodrich@T540p:/opt/cmdstan/bin$ ./stanc --version
stanc version 2.9.0

It's still a string though.

Ben
 

Robert Grant

unread,
Mar 3, 2016, 6:04:09 AM3/3/16
to stan development mailing list
That's good enough for me. Thanks Ben!
Reply all
Reply to author
Forward
0 new messages