Thanks @dhersz! That indeed fixes the builds for me.
Just to reiterate, the solution that works for me is adding this to travis.yml:
before_install:
- sudo $(which R) CMD javareconf
You will obviously need to remove sudo: false
if you have it.
Is there any way this could get incorporated into the R travis template so users don’t have to do this? Any way to fix this that allows for sudo: false
?