[R-SIG-Mac] [External] Rmpfr crashes on Mac

Richard M. Heiberger rmh @end|ng |rom temp|e@edu
Sun Nov 28 23:47:06 CET 2021


I just downloaded 
RStudio
2021.09.1 Build 372
This is an Intel RStudio running on my Apple M1 chip.
The example works normally.

Do you have the most recent RStudio?
I tried on the earlier RStudio I downloaded in January, right after getting this M1 computer, and that version Rstudio wouldn't start.





> On Nov 28, 2021, at 12:53, Richard M. Heiberger <rmh using temple.edu> wrote:
> 
> Works normally in R-4.1.2 with Rmpfr_0.8-7 on Macintosh aarch64-apple-darwin20
> I am running inside Emacs using ESS
> 
>> packageVersion("Rmpfr")
> [1] ‘0.8.7’
>> library(Rmpfr)
> Loading required package: gmp
> 
> Attaching package: ‘gmp’
> 
> The following objects are masked from ‘package:base’:
> 
>    %*%, apply, crossprod, matrix, tcrossprod
> 
> C code of R package 'Rmpfr': GMP using 64 bits per limb
> 
> 
> Attaching package: ‘Rmpfr’
> 
> The following object is masked from ‘package:gmp’:
> 
>    outer
> 
> The following objects are masked from ‘package:stats’:
> 
>    dbinom, dgamma, dnbinom, dnorm, dpois, dt, pnorm
> 
> The following objects are masked from ‘package:base’:
> 
>    cbind, pmax, pmin, rbind
> 
>> x1 <- mpfr(-50, 200)
>> x1
> 1 'mpfr' number of precision  200   bits 
> [1] -50
>> x2 <- mpfr(-50.1, 200)
>> x2
> 1 'mpfr' number of precision  200   bits 
> [1] -50.10000000000000142108547152020037174224853515625
>> version
>               _                           
> platform       aarch64-apple-darwin20      
> arch           aarch64                     
> os             darwin20                    
> system         aarch64, darwin20           
> status                                     
> major          4                           
> minor          1.2                         
> year           2021                        
> month          11                          
> day            01                          
> svn rev        81115                       
> language       R                           
> version.string R version 4.1.2 (2021-11-01)
> nickname       Bird Hippie                 
>> 
> 
>> On Nov 27, 2021, at 15:46, Dev Chakraborty <dpc10ster using gmail.com> wrote:
>> 
>> I used package Rmpfr ca. 2017 and it worked fine. The latest version
>> (0.8-7) causes R (running under RStudio) to crash. A simple example is:
>> 
>> library(Rmpfr)
>> x1 <- mpfr(-50, 200)
>> x2 <- mpfr(-50.1, 200)
>> 
>> Which gives the message:
>> 
>> R Session Aborted
>> R encountered a fatal error
>> The session was terminated
>> Start New Session
>> 
>> I am using R version 4.1.1 on a Mac running MacOS 12.0.1. and an older iMac
>> running 10.15.7. The problem occurs with both machines.
>> 
>> When I install from the CRAN archive file  Rmpfr_0.6-1.tar.gz (the version
>> of the package around 2017, corresponding to the last time I used it) the
>> problem goes away.
>> 
>> 	[[alternative HTML version deleted]]
>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac using r-project.org
>> https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-mac&data=04%7C01%7Crmh%40temple.edu%7C7e802ce732d54cb7609c08d9b29810bb%7C716e81efb52244738e3110bd02ccf6e5%7C0%7C0%7C637737188469988655%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=r7I1Q6d2VlXeVcG3cvEneRngAKuJTqJyNIjQ4xuuQpg%3D&reserved=0
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-mac&data=04%7C01%7Crmh%40temple.edu%7C7e802ce732d54cb7609c08d9b29810bb%7C716e81efb52244738e3110bd02ccf6e5%7C0%7C0%7C637737188469988655%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=r7I1Q6d2VlXeVcG3cvEneRngAKuJTqJyNIjQ4xuuQpg%3D&reserved=0



More information about the R-SIG-Mac mailing list