When building an R package based on Stan using the rstantools 1.5 build-chain, I am having trouble suppressing Stan parser warnings. Usually I wouldn’t care if these warnings are shown (they are false positives in my case), but they ultimately cause R CMD check to fail.
My current work-around is to wrap some of the code in
stanmodels.R in a call to
SuppressWarnings seems to have no effect. Is there any better solution for this?