Skip to content
Prev 387358 / 398502 Next

mpfr function in Rmpfr crashes R

Dear Roger,

This works perfectly fine for me on an apparently similar system, with 
the exceptions that I'm running R 4.0.4, have many fewer packages 
loaded, and am in a slightly different locale:

--------------- snip ------------

 > Rmpfr::mpfr(pi, 120)
1 'mpfr' number of precision  120   bits
[1] 3.1415926535897931159979634685441851616

 > sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16

Matrix products: default
LAPACK: 
/Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] Rmpfr_0.8-2 gmp_0.6-2

loaded via a namespace (and not attached):
  [1] compiler_4.0.4    htmltools_0.5.1.1 tools_4.0.4       yaml_2.2.1 
       rmarkdown_2.6
  [6] knitr_1.31        xfun_0.21         digest_0.6.27 
packrat_0.5.0     rlang_0.4.10
[11] evaluate_0.14

--------------- snip ------------

You might try updating R or running Rmpfr in a cleaner session.

I hope this helps,
  John

John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/
On 2021-03-06 7:07 p.m., Roger Bos wrote:
Message-ID: <2e996c6a-edd5-ef14-03c8-5a716c6d552e@mcmaster.ca>
In-Reply-To: <1555_1615120206_127CU5fl026596_CAPV07m-Dxt-2BHOR1oxeSW5dfB1o3dJK8s9HRvuy-QxtyqLPkg@mail.gmail.com>