gon*_*pto 7 packages r segmentation-fault rjava
我正在尝试重新安装以前能够安装和使用的软件包.我的计算机意外重启后,我正在构建自己的软件包,然后我开始在加载rpgraph软件包时遇到问题.所以我决定卸载它并重新安装它.当我这样做时,我收到以下错误:
library(devtools)
library(rJava)
install_github("Albluca/rpgraph")
Downloading GitHub repo Albluca/rpgraph@master
from URL https://api.github.com/repos/Albluca/rpgraph/zipball/master
Installing rpgraph
Running command /usr/lib/R/bin/R
Arguments:
CMD
INSTALL
/tmp/Rtmp5OrtLL/devtools505a703b3ccd/Albluca-rpgraph-de04f96
--library=/home/gonzalo/R/x86_64-pc-linux-gnu-library/3.4
--install-tests
installing source package ‘rpgraph’ ...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Segmentation fault (core dumped)
ERROR: loading failed
removing ‘/home/gonzalo/R/x86_64-pc-linux-gnu-library/3.4/rpgraph’
Installation failed: run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout), stderr_line_callback = real_callback(stderr), stdout_callback = real_block_callback, stderr_callback = real_block_callback, echo_cmd = echo, echo = show, spinner = spinner, error_on_status = fail_on_status, timeout = timeout) : System command error`
Run Code Online (Sandbox Code Playgroud)
我尝试从零重新安装JAva和cran,但不知何故,我的系统中仍有一些东西可以避免安装软件包.此外,由于错误信息不是很丰富,我不知道如何缩小问题所在.
感谢您的任何帮助,您可以提供.
这似乎是最近内核版本中的一个错误,同样的问题也发生在其他涉及 Java 的 R 库以及其他软件中。
请参阅https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2017-June/017507.html和https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1698919。
这个解决方法对我来说很有效:
export _JAVA_OPTIONS="-Xss2560k -Xmx2g"
Run Code Online (Sandbox Code Playgroud)