Overly Verbose Output


#1

I compiled a model on Linux Mint 18.3 / Rstan 2.17.3 / R 3.4.4 and got this

[BEGIN]

model.stan <- stan_model(model_code=model,verbose=FALSE)
In file included from /home/thomas/R/RLibrary/3.4/BH/include/boost/config.hpp:39:0,
from /home/thomas/R/RLibrary/3.4/BH/include/boost/math/tools/config.hpp:13,
from /home/thomas/R/RLibrary/3.4/StanHeaders/include/stan/math/rev/core/var.hpp:7,
from /home/thomas/R/RLibrary/3.4/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
from /home/thomas/R/RLibrary/3.4/StanHeaders/include/stan/math/rev/core.hpp:12,
from /home/thomas/R/RLibrary/3.4/StanHeaders/include/stan/math/rev/mat.hpp:4,
from /home/thomas/R/RLibrary/3.4/StanHeaders/include/stan/math.hpp:4,
from /home/thomas/R/RLibrary/3.4/StanHeaders/include/src/stan/model/model_header.hpp:4,
from filece46e0e70cf.cpp:8:
/home/thomas/R/RLibrary/3.4/BH/include/boost/config/compiler/gcc.hpp:186:0: warning: “BOOST_NO_CXX11_RVALUE_REFERENCES” redefined

define BOOST_NO_CXX11_RVALUE_REFERENCES

^
:0:0: note: this is the location of the previous definition
[END}

The same model compiled on Linux Mint 19 / RStan 2.17.3 / R 3.5.1 generated over 5000 lines of what looks like output from the compiler. Can anyone suggest a way to get back to something more concise? Thanks.

Tom


#2

http://mc-stan.org/misc/warnings.html#compiler-warnings


#3

How about

temp <- capture.output(
model.stan <- stan_model(model_code=model,verbose=FALSE)
)

which captures the 5000+ lines of output and does not seem to interfere with Stan. Do you see any problems with this approach?


#4

This will also capture any other messages that you might want to see, including compiler errors in the case of a bug that might make it harder to debug… This is something we could do within rsran to log the compiler output wholesale since errors there are always Stan bugs.

That would be an improvement over the current state because it would give users something specific to send us if that step failed