Rstan version is 2.17.3 but rstan::stan_version() is 2.17.0

Operating System: macOS 10.13.3
Interface Version: 2.17.3
Output of writeLines(readLines(file.path(Sys.getenv(“HOME”), “.R/Makevars”))):

CFLAGS = -g -O3 -Wall -pedantic -mtune=native -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include
CXXFLAGS = -g -O3 -Wall -pedantic -mtune=native -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include
LDFLAGS = -L/usr/local/opt/openssl/lib -L/usr/local/opt/gettext/lib
PKG_CONFIG_PATH=“/usr/local/opt/openssl/lib/pkgconfig”

Output of devtools::session_info("rstan”):

Session info ------------------------------------------------------------------------------
setting value
version R version 3.4.4 (2018-03-15)
system x86_64, darwin17.3.0
ui RStudio (1.1.423)
language (EN)
collate en_US.UTF-8
tz America/New_York
date 2018-03-17

Packages ----------------------------------------------------------------------------------
package * version date source
assertthat 0.2.0 2017-04-11 CRAN (R 3.4.3)
BH 1.66.0-1 2018-02-13 CRAN (R 3.4.3)
cli 1.0.0 2017-11-05 CRAN (R 3.4.3)
colorspace 1.3-2 2016-12-14 CRAN (R 3.4.3)
crayon 1.3.4 2017-09-16 CRAN (R 3.4.3)
dichromat 2.0-0 2013-01-24 CRAN (R 3.4.3)
digest 0.6.15 2018-01-28 CRAN (R 3.4.3)
ggplot2 2.2.1 2016-12-30 CRAN (R 3.4.3)
glue 1.2.0 2017-10-29 CRAN (R 3.4.3)
graphics * 3.4.4 2018-03-15 local
grDevices * 3.4.4 2018-03-15 local
grid 3.4.4 2018-03-15 local
gridExtra 2.3 2017-09-09 CRAN (R 3.4.3)
gtable 0.2.0 2016-02-26 CRAN (R 3.4.3)
inline 0.3.14 2015-04-13 CRAN (R 3.4.3)
labeling 0.3 2014-08-23 CRAN (R 3.4.3)
lattice 0.20-35 2017-03-25 CRAN (R 3.4.4)
lazyeval 0.2.1 2017-10-29 CRAN (R 3.4.3)
magrittr 1.5 2014-11-22 CRAN (R 3.4.3)
MASS 7.3-49 2018-02-23 CRAN (R 3.4.4)
Matrix 1.2-12 2017-11-30 CRAN (R 3.4.4)
methods * 3.4.4 2018-03-15 local
munsell 0.4.3 2016-02-13 CRAN (R 3.4.3)
pillar 1.2.1 2018-02-27 CRAN (R 3.4.3)
plyr 1.8.4 2016-06-08 CRAN (R 3.4.3)
R6 2.2.2 2017-06-17 CRAN (R 3.4.3)
RColorBrewer 1.1-2 2014-12-07 CRAN (R 3.4.3)
Rcpp 0.12.16 2018-03-13 cran (@0.12.16)
RcppEigen 0.3.3.4.0 2018-02-07 CRAN (R 3.4.3)
reshape2 1.4.3 2017-12-11 CRAN (R 3.4.3)
rlang 0.2.0.9000 2018-03-15 Github (r-lib/rlang@1b81816)
rstan 2.17.3 2018-01-20 CRAN (R 3.4.4)
scales 0.5.0 2017-08-24 CRAN (R 3.4.3)
StanHeaders 2.17.2 2018-01-20 CRAN (R 3.4.3)
stats * 3.4.4 2018-03-15 local
stats4 3.4.4 2018-03-15 local
stringi 1.1.6 2017-11-17 CRAN (R 3.4.3)
stringr 1.3.0 2018-02-19 CRAN (R 3.4.3)
tibble 1.4.2 2018-01-22 CRAN (R 3.4.3)
tools 3.4.4 2018-03-15 local
utf8 1.1.3 2018-01-03 CRAN (R 3.4.3)
utils * 3.4.4 2018-03-15 local
viridisLite 0.3.0 2018-02-01 CRAN (R 3.4.3)

rstan::stan_version()
[1] “2.17.0”

I’ve tried various combinations of remove.packages("rstan") and restarting RStudio, as well as doing install.packages("rstan", type = "source"). Any ideas?

The stan_version function pertains to the upstream major version. You want packageVersion("rstan")

Ah, I misread the release notes. Reading them again, how would I try 2.17.1? The reason this came up is that I don’t seem to have access the new-ish append_array function, so I thought maybe I had an out of date Stan. (The release notes say append_array is in 2.17.0, but, yeah, thought it was a possibility.) E.g.

No matches for: 

  append_array(int[], int[])

Function append_array not found.

There isn’t a StanHeaders on CRAN that has that yet. You would have to install the “for-2.18” branch of rstan and StanHeaders from GitHub.

Awesome, thank you for your help!