I am trying to reinstall a package that I was previously able to install and use. I was building a package of my own after my computer unexpectedly restarted and then I star
I experienced the same problem while installing the libraries vanneuler
and wordnet
and solved the issue using the solution proposed by Kenneth. In my case the option -Xss2560k
was enough to solve:
export _JAVA_OPTIONS="-Xss2560k"
In addition: instead of running the export command from the terminal the java option can be set directly from the R session with the following command:
options(java.parameters = "-Xss2560k")
This seems to be a bug in recent kernel versions, the same problem happens with other R libraries that involve Java, and also other software.
See https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2017-June/017507.html and https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1698919.
This workaround does the trick for me:
export _JAVA_OPTIONS="-Xss2560k -Xmx2g"