Skip to content
Prev 387360 / 398502 Next

mpfr function in Rmpfr crashes R

It works for me, on a slightly different system than yours:

 > Rmpfr::mpfr(pi, 120)
1 'mpfr' number of precision  120   bits
[1] 3.1415926535897931159979634685441851616
 > sessionInfo()
R version 4.0.3 Patched (2021-01-30 r79912)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS: 
/Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
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-1

loaded via a namespace (and not attached):
[1] compiler_4.0.3
On 06/03/2021 7:07 p.m., Roger Bos wrote: