I am trying to install lpgr using option B in Longitudinal Gaussian Process Regression • lgpr. For this I had to install ggpubr. During the installation I have received bunch of warnings and at least one error:
/usr/lib/R/site-library/StanHeaders/include/stan/math/prim/mat/eigen_plugins.h:183:5: error: ‘vari_return_t’ does not name a type; did you mean ‘error_return’?
vari_return_t operator()(T &v) const { return v.vi_; }
^~~~~~~~~~~~~
error_return
Thanks to all. R has a bunch of library paths. I saw that rstan is installed in two places. One is /usr/lib/R/site-library, another is /home/user/R/x86_64-pc-linux-gnu-library/3.6. Is it OK?
What you did is fine. You can even have two different rstans. They just need to have the right StanHeaders with them. The problem shouldn’t persist past this week.