我在大学HPC群集上使用R,现在他们已升级到R / 3.3.0我正在寻找安装我的代码和支持包以匹配我的本地设置。但是我遇到了install_github
和install_bitbucket
命令来安装我的代码(以及我使用的另一个包)的问题。
这些是来自R会话的命令和错误:
> library(devtools)
> install_github("config-i1/smooth")
Downloading GitHub repo config-i1/smooth@master
from URL https://api.github.com/repos/config-i1/smooth/zipball/master
Installing smooth
*** caught segfault ***
address 0x4000000079, cause 'memory not mapped'
Traceback:
1: .Call(digest_impl, object, as.integer(algoint), as.integer(length), as.integer(skip), as.integer(raw), as.integer(seed))
2: `_digest`(c(list(repos, type), lapply(`_additional`, function(x) eval(x[[2L]], environment(x)))), algo = "sha512")
3: available_packages(repos, type)
4: package_deps(deps, repos = repos, type = type)
5: dev_package_deps(pkg, repos = repos, dependencies = dependencies, type = type, force_deps = force_deps, quiet = quiet)
6: install_deps(pkg, dependencies = dependencies, upgrade = upgrade_dependencies, threads = threads, force_deps = force_deps, quiet = quiet, ...)
7: install(source, ..., quiet = quiet, metadata = metadata)
8: FUN(X[[i]], ...)
9: vapply(remotes, install_remote, ..., FUN.VALUE = logical(1))
10: install_remotes(remotes, quiet = quiet, ...)
11: install_github("config-i1/smooth")
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
我收到类似的错误:install_bitbucket("wellermatt/forecastR"
> sessionInfo()
R version 3.3.0 (2016-05-03)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Scientific Linux release 6.7 (Carbon)
locale:
[1] LC_CTYPE=C LC_NUMERIC=C
[3] LC_TIME=en_US.iso88591 LC_COLLATE=C
[5] LC_MONETARY=en_US.iso88591 LC_MESSAGES=en_US.iso88591
[7] LC_PAPER=en_US.iso88591 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.iso88591 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] devtools_1.11.1
loaded via a namespace (and not attached):
[1] withr_1.0.1 memoise_1.0.0 digest_0.6.9
我尝试升级RCurl
和devtools
,但两者都没有帮助。任何人都可以建议一个潜在的解决方案 - 我目前无法在网上找到一个解决方案。我想我可以尝试从github下载整个存储库,然后从源代码安装,但是这对我目前自动提取最新版本的工作流程没有帮助。
----编辑-----
Lancaster的集群经理也尝试了安装,并调查了追溯。他报告如下:
让我知道这是怎么回事。我可以自己复制崩溃(这可能本身很奇怪,因为我希望您的代码库需要身份验证),但我不是更聪明。这是strace的最后几行(仅记录系统调用),导致段错误:
read(3, "Package: forecastR\nType: Package"..., 16384) = 492
read(3, "", 12288) = 0
lseek(3, 0, SEEK_CUR) = 492
read(3, "", 4096) = 0
close(3) = 0
munmap(0x7f276cdfe000, 4096) = 0
stat("/tmp/RtmpjNlvQb/devtools2d0a1128ed80/wellermatt-forecastr-d5b58631b3a1/src", 0x7fff1a81bdb0) = -1 ENOENT (No such file or directory)
write(2, "Installing forecastR\n", 21) = 21
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
失败的stat()调用可能会也可能不是问题 - 您是否期望您的软件包具有src目录?如果没有,这可能只是一个预期的测试。