I'm having problems installing for the first time rstan. I'm using R 3.3.2 and followed the RStan Getting Started document. I'm getting the following errors when trying the example "rats"
> y <- read.table('rats.txt', header = TRUE)
> x <- c(8, 15, 22, 29, 36)
> xbar <- mean(x)
> N <- nrow(y)
> T <- ncol(y)
> rats_fit <- stan(file = 'rats.stan')
DIAGNOSTIC(S) FROM PARSER:
Warning (non-fatal): assignment operator <- deprecated in the Stan language; use = instead.
Warning (non-fatal): assignment operator <- deprecated in the Stan language; use = instead.
Warning (non-fatal): assignment operator <- deprecated in the Stan language; use = instead.
Warning (non-fatal): assignment operator <- deprecated in the Stan language; use = instead.
In file included from C:/Program Files/R/R-3.3.2/library/BH/include/boost/config.hpp:39:0,
from C:/Program Files/R/R-3.3.2/library/BH/include/boost/math/tools/config.hpp:13,
from C:/Program Files/R/R-3.3.2/library/StanHeaders/include/stan/math/rev/core/var.hpp:7,
from C:/Program Files/R/R-3.3.2/library/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
from C:/Program Files/R/R-3.3.2/library/StanHeaders/include/stan/math/rev/core.hpp:12,
from C:/Program Files/R/R-3.3.2/library/StanHeaders/include/stan/math/rev/mat.hpp:4,
from C:/Program Files/R/R-3.3.2/library/StanHeaders/include/stan/math.hpp:4,
from C:/Program Files/R/R-3.3.2/library/StanHeaders/include/src/stan/model/model_header.hpp:4,
from file1570189b551b.cpp:8:
C:/Program Files/R/R-3.3.2/library/BH/include/boost/config/compiler/gcc.hpp:186:0: warning: "BOOST_NO_CXX11_RVALUE_REFERENCES" redefined
# define BOOST_NO_CXX11_RVALUE_REFERENCES
^
<command-line>:0:0: note: this is the location of the previous definition
cc1plus.exe: warning: unrecognized command line option "-Wno-ignored-attributes"
Error in tryCatch(evalq(getNamespace("Rcpp"), <environment>), error = function (x) :
unused arguments (error = function (x)
x, interrupt = function (x)
x)
In addition: Warning messages:
1: In
is.na(x) :
is.na() applied to non-(list or vector) of type 'NULL'
2: In FUN(X[[i]], ...) : data with name y is not numeric and not used