bbolker/broom.mixed

Travis errors: `rstan` install

vincentarelbundock opened this issue · 1 comments

rstan fails to install on Travis with the current master version. This probably means that not all the tests are run, even if Travis gives a green light.

Log extract:

make: *** [Module.o] Error 1
ERROR: compilation failed for package ‘rstan’
* removing ‘/home/travis/R/Library/rstan’
* installing *source* package ‘rjags’ ...
** package ‘rjags’ successfully unpacked and MD5 sums checked
** using staged installation
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: pkg-config file for jags 4 unavailable
configure: WARNING: Consider adding the directory containing `jags.pc`
configure: WARNING: to the PKG_CONFIG_PATH environment variable
configure: Attempting legacy configuration of rjags
checking for jags... no
configure: error: "automatic detection of JAGS failed. Please use pkg-config to locate the JAGS library. See the INSTALL file for details."
ERROR: configuration failed for package ‘rjags’
* removing ‘/home/travis/R/Library/rjags’
ERROR: dependency ‘rstan’ is not available for package ‘shinystan’
* removing ‘/home/travis/R/Library/shinystan’
ERROR: dependency ‘rjags’ is not available for package ‘R2jags’
* removing ‘/home/travis/R/Library/R2jags’
ERROR: dependencies ‘rstan’, ‘shinystan’ are not available for package ‘rstanarm’
* removing ‘/home/travis/R/Library/rstanarm’
ERROR: dependencies ‘rstan’, ‘shinystan’ are not available for package ‘brms’
* removing ‘/home/travis/R/Library/brms’

The downloaded source packages are in
	‘/tmp/RtmpGJWrWn/downloaded_packages’
Warning messages:
1: In i.p(...) : installation of package ‘rstan’ had non-zero exit status
2: In i.p(...) : installation of package ‘rjags’ had non-zero exit status
3: In i.p(...) :
  installation of package ‘shinystan’ had non-zero exit status
4: In i.p(...) : installation of package ‘R2jags’ had non-zero exit status
5: In i.p(...) :
  installation of package ‘rstanarm’ had non-zero exit status
6: In i.p(...) : installation of package ‘brms’ had non-zero exit status
travis_time:end:00cc8d5a:start=1601045522734754774,finish=1601045572364785476,duration=49630030702,event=
�[0Ktravis_fold:end:R-dependencies
�[0Ktravis_time:start:102ee239
�[0K$ travis_wait 59 R CMD build .
echo "options(repos=list(CRAN='https://cran.rstudio.com')); install.packages('devtools')" | R --vanilla --slave
travis_wait 59 R CMD check broom.mixed*tar.gz

I don't know that there's much we can do about this. FWIW the log excerpt you're showing above is mostly telling us about rjags breaking (which is expected unless we figure out how to install JAGS 4 in a Travis environment), rather than rstanarm ...