分区:: ListParts崩溃R和Rstudio

发布于 2025-02-12 12:30:49 字数 539 浏览 0 评论 0原文

无论输入如何,使用分区软件包中的ListParts()立即导致R和Rstudio崩溃。以下是一个可再现的示例,带有错误消息的追溯。我正在运行R 4.2.0 GUI 1.78 High Sierra Build和Rstudio 2022.2.3.492 Macos Monterey 12.2.1。该功能在我同事的PC上运行良好。任何帮助!

> library(partitions)
> myVec <- c(1:3)
> partitions::listParts(length(myVec))

 *** caught illegal operation ***
address 0x119c1cbfe, cause 'illegal opcode'

Traceback:
 1: as.bigz(1)
 2: .fac(sum(x))
 3: setparts(x)
 4: partitions::listParts(myVec)

Using listParts() from the partitions package immediately causes R and RStudio to crash, no matter the input. Below is a reproducible example and traceback with error message. I'm running R 4.2.0 GUI 1.78 High Sierra build and RStudio 2022.2.3.492 on macOS Monterey 12.2.1. The function runs fine on my coworker's PC. Any help appreciated!

> library(partitions)
> myVec <- c(1:3)
> partitions::listParts(length(myVec))

 *** caught illegal operation ***
address 0x119c1cbfe, cause 'illegal opcode'

Traceback:
 1: as.bigz(1)
 2: .fac(sum(x))
 3: setparts(x)
 4: partitions::listParts(myVec)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

誰ツ都不明白 2025-02-19 12:30:49

不知道这里发生了什么;该分区软件包仅用于评估列表PARTPARTS(3),这很简单:

listParts(3)
[[1]
[1](1,2,3)

[[2]]
[1](1,3)(2)

[[3]]
[1](1,2)(3)

[[4]]
[1](2,3)(1)

[[5]]
[1](1)(2)(3)

错误来自GMP软件包的一部分AS.Bigz()。我建议使用R -Vanilla,并找到一个最少的示例,该示例不使用分区并将其报告给GMP维护者。最好的祝福,罗宾

Not sure what is going on here; the partitions package is only used to evaluate listParts(3), and this is straightforward:

listParts(3)
[[1]]
[1] (1,2,3)

[[2]]
[1] (1,3)(2)

[[3]]
[1] (1,2)(3)

[[4]]
[1] (2,3)(1)

[[5]]
[1] (1)(2)(3)

The error comes from as.bigz(), part of the gmp package. I would suggest using R --vanilla, and finding a minimal example that does not use partitions and reporting it to the gmp maintainer. Best wishes, Robin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文