Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
Thank you very much, Simon. I have installed this R: R-4.3-branch 4.3.3 RC (2024/02/22, r85969) And the problem is solved. Thanks again. I would like to add my voice to Daniel Kelley's message: Many thanks to all of those who have worked so hard on R over the years. It's a very pleasant system, and community. Best regards, Ángeles > El 22 feb 2024, a las 4:33, Simon Urbanek > escribió: > > I can confirm that this is a rather nasty Sonoma bug at least since macOS > 14.3.1. It seems Apple tried to implement some kind of optimization that > wants to minimize redraws in views, but it's buggy in that it doesn't detect > that the contents have actually changed and thus refuses to redraw the view > even though R tells it to do so. I found a somewhat convoluted work-around: > if we draw two different things (just say dummy rectangles of varying color) > and then overwrite them with the actual R plot then even Sonoma will redraw > the view. It is rather bizarre... The work around of doodling unrelated > things on the screen is now in R-devel and R-patched (85968 and 85969 resp.) > so please check R 4.3.3 beta r85969 or higher from mac.R-project.org > > Cheers, > Simon > > > >> On 22/02/2024, at 10:57 AM, Simon Urbanek >> wrote: >> >> I can confirm that this is a bug specific to macOS Sonoma 14.3.1, even >> earlier versions of Sonoma don't have that problem. Given the number of >> previous bugs in Sonoma chances are Apple may fix in the in the next >> release, but I'll see if we can do anything about it on our end in the >> meantime. >> >> Cheers, >> Simon >> >> >>> On 19/02/2024, at 5:56 AM, María de los Ángeles Casares de Cal via >>> R-SIG-Mac wrote: >>> >>> Thank you very much for your information, Michael. >>> >>> I had not realize that by changing the size of the window where all the >>> plots should be, everything appears. >>> The same thing happens to me too. >>> >>> Regards, >>> Ángeles >>> >>> >>> sessionInfo() >>> R version 4.3.2 (2023-10-31) >>> Platform: aarch64-apple-darwin20 (64-bit) >>> Running under: macOS Sonoma 14.3.1 >>> >>> Matrix products: default >>> BLAS: >>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib >>> >>> LAPACK: >>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; >>> LAPACK version 3.11.0 >>> >>> locale: >>> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 >>> >>> time zone: Europe/Madrid >>> tzcode source: internal >>> >>> attached base packages: >>> [1] stats graphics grDevices utils datasets methods base >>> >>> loaded via a namespace (and not attached): >>> [1] compiler_4.3.2 >>> >>> system_profiler SPHardwareDataType | grep Model >>> Model Name: MacBook Air >>> Model Identifier: Mac14,2 >>> Model Number: Z161000GJY/A >>> >>> >>> El 16 feb 2024, a las 14:10, Michael Grundler escribió: I am also observing the same behavior as María with the 4.3.2 Patched binary from mac.r-project.org running under Sonoma 14.3.1 on an m3 mac. Using the default quartz() device and running the example line by line shows a blank device. If the device window is resized, however, the expected result appears. The example runs fine using x11(). The example also runs fine on both quartz() and x11() on my old x86 running under Sonoma 14.2.1. > sessionInfo() R version 4.3.2 Patched (2024-02-13 r85905) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Sonoma 14.3.1 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0 locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 time zone: America/New_York tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.3.2 ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac >>> >>> >>> [[alternative HTML version deleted]] >>> >>> ___ >>> R-SIG-Mac mailing list >>> R-SIG-Mac@r-project.org >>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >>> >> >> ___ >> R-SIG-Mac mailing list >> R-SIG-Mac@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> > [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
For what it's worth, I also see the bug in the trial Sonoma identified as macOS Version 14.4 Beta (23E5205c) which was updated today. I'm not sure how many beta versions they have released, but so far none has led to a fix. My guess is that they are aware of the problem and working on it, because I've seen what seem to be similar problems with text (in the mail application for example) but they have lessened in the last two or so beta versions. As others have noted, resizing fixes things. I tend to just use x11() though, because it's also nice and fast for images and I use them a fair bit. Many thanks to all of those who have worked so hard on R over the years. It's a very pleasant system, and community. Dan. > On Feb 21, 2024, at 5:57 PM, Simon Urbanek > wrote: > > CAUTION: The Sender of this email is not from within Dalhousie. > > I can confirm that this is a bug specific to macOS Sonoma 14.3.1, even > earlier versions of Sonoma don't have that problem. Given the number of > previous bugs in Sonoma chances are Apple may fix in the in the next release, > but I'll see if we can do anything about it on our end in the meantime. > > Cheers, > Simon > > >> On 19/02/2024, at 5:56 AM, María de los Ángeles Casares de Cal via R-SIG-Mac >> wrote: >> >> Thank you very much for your information, Michael. >> >> I had not realize that by changing the size of the window where all the >> plots should be, everything appears. >> The same thing happens to me too. >> >> Regards, >> Ángeles >> >> >> sessionInfo() >> R version 4.3.2 (2023-10-31) >> Platform: aarch64-apple-darwin20 (64-bit) >> Running under: macOS Sonoma 14.3.1 >> >> Matrix products: default >> BLAS: >> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib >> LAPACK: >> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; >> LAPACK version 3.11.0 >> >> locale: >> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 >> >> time zone: Europe/Madrid >> tzcode source: internal >> >> attached base packages: >> [1] stats graphics grDevices utils datasets methods base >> >> loaded via a namespace (and not attached): >> [1] compiler_4.3.2 >> >> system_profiler SPHardwareDataType | grep Model >>Model Name: MacBook Air >>Model Identifier: Mac14,2 >>Model Number: Z161000GJY/A >> >> >> >>> El 16 feb 2024, a las 14:10, Michael Grundler >>> escribió: >>> >>> I am also observing the same behavior as María with the 4.3.2 Patched >>> binary from mac.r-project.org running under Sonoma 14.3.1 on an m3 >>> mac. Using the default quartz() device and running the example line by >>> line shows a blank device. If the device window is resized, however, >>> the expected result appears. The example runs fine using x11(). The >>> example also runs fine on both quartz() and x11() on my old x86 >>> running under Sonoma 14.2.1. >>> sessionInfo() >>> R version 4.3.2 Patched (2024-02-13 r85905) >>> Platform: aarch64-apple-darwin20 (64-bit) >>> Running under: macOS Sonoma 14.3.1 >>> >>> Matrix products: default >>> BLAS: >>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib >>> LAPACK: >>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; >>> LAPACK version 3.11.0 >>> >>> locale: >>> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 >>> >>> time zone: America/New_York >>> tzcode source: internal >>> >>> attached base packages: >>> [1] stats graphics grDevices utils datasets methods base >>> >>> loaded via a namespace (and not attached): >>> [1] compiler_4.3.2 >>> >>> ___ >>> R-SIG-Mac mailing list >>> R-SIG-Mac@r-project.org >>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> >> >> [[alternative HTML version deleted]] >> >> ___ >> R-SIG-Mac mailing list >> R-SIG-Mac@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
I can confirm that this is a rather nasty Sonoma bug at least since macOS 14.3.1. It seems Apple tried to implement some kind of optimization that wants to minimize redraws in views, but it's buggy in that it doesn't detect that the contents have actually changed and thus refuses to redraw the view even though R tells it to do so. I found a somewhat convoluted work-around: if we draw two different things (just say dummy rectangles of varying color) and then overwrite them with the actual R plot then even Sonoma will redraw the view. It is rather bizarre... The work around of doodling unrelated things on the screen is now in R-devel and R-patched (85968 and 85969 resp.) so please check R 4.3.3 beta r85969 or higher from mac.R-project.org Cheers, Simon > On 22/02/2024, at 10:57 AM, Simon Urbanek wrote: > > I can confirm that this is a bug specific to macOS Sonoma 14.3.1, even > earlier versions of Sonoma don't have that problem. Given the number of > previous bugs in Sonoma chances are Apple may fix in the in the next release, > but I'll see if we can do anything about it on our end in the meantime. > > Cheers, > Simon > > >> On 19/02/2024, at 5:56 AM, María de los Ángeles Casares de Cal via R-SIG-Mac >> wrote: >> >> Thank you very much for your information, Michael. >> >> I had not realize that by changing the size of the window where all the >> plots should be, everything appears. >> The same thing happens to me too. >> >> Regards, >> Ángeles >> >> >> sessionInfo() >> R version 4.3.2 (2023-10-31) >> Platform: aarch64-apple-darwin20 (64-bit) >> Running under: macOS Sonoma 14.3.1 >> >> Matrix products: default >> BLAS: >> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib >> >> LAPACK: >> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; >> LAPACK version 3.11.0 >> >> locale: >> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 >> >> time zone: Europe/Madrid >> tzcode source: internal >> >> attached base packages: >> [1] stats graphics grDevices utils datasets methods base >> >> loaded via a namespace (and not attached): >> [1] compiler_4.3.2 >> >> system_profiler SPHardwareDataType | grep Model >>Model Name: MacBook Air >>Model Identifier: Mac14,2 >>Model Number: Z161000GJY/A >> >> >> >>> El 16 feb 2024, a las 14:10, Michael Grundler >>> escribió: >>> >>> I am also observing the same behavior as María with the 4.3.2 Patched >>> binary from mac.r-project.org running under Sonoma 14.3.1 on an m3 >>> mac. Using the default quartz() device and running the example line by >>> line shows a blank device. If the device window is resized, however, >>> the expected result appears. The example runs fine using x11(). The >>> example also runs fine on both quartz() and x11() on my old x86 >>> running under Sonoma 14.2.1. >>> sessionInfo() >>> R version 4.3.2 Patched (2024-02-13 r85905) >>> Platform: aarch64-apple-darwin20 (64-bit) >>> Running under: macOS Sonoma 14.3.1 >>> >>> Matrix products: default >>> BLAS: >>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib >>> LAPACK: >>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; >>> LAPACK version 3.11.0 >>> >>> locale: >>> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 >>> >>> time zone: America/New_York >>> tzcode source: internal >>> >>> attached base packages: >>> [1] stats graphics grDevices utils datasets methods base >>> >>> loaded via a namespace (and not attached): >>> [1] compiler_4.3.2 >>> >>> ___ >>> R-SIG-Mac mailing list >>> R-SIG-Mac@r-project.org >>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> >> >> [[alternative HTML version deleted]] >> >> ___ >> R-SIG-Mac mailing list >> R-SIG-Mac@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
I can confirm that this is a bug specific to macOS Sonoma 14.3.1, even earlier versions of Sonoma don't have that problem. Given the number of previous bugs in Sonoma chances are Apple may fix in the in the next release, but I'll see if we can do anything about it on our end in the meantime. Cheers, Simon > On 19/02/2024, at 5:56 AM, María de los Ángeles Casares de Cal via R-SIG-Mac > wrote: > > Thank you very much for your information, Michael. > > I had not realize that by changing the size of the window where all the plots > should be, everything appears. > The same thing happens to me too. > > Regards, > Ángeles > > > sessionInfo() > R version 4.3.2 (2023-10-31) > Platform: aarch64-apple-darwin20 (64-bit) > Running under: macOS Sonoma 14.3.1 > > Matrix products: default > BLAS: > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib > > LAPACK: > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; > LAPACK version 3.11.0 > > locale: > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > time zone: Europe/Madrid > tzcode source: internal > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] compiler_4.3.2 > > system_profiler SPHardwareDataType | grep Model > Model Name: MacBook Air > Model Identifier: Mac14,2 > Model Number: Z161000GJY/A > > > >> El 16 feb 2024, a las 14:10, Michael Grundler >> escribió: >> >> I am also observing the same behavior as María with the 4.3.2 Patched >> binary from mac.r-project.org running under Sonoma 14.3.1 on an m3 >> mac. Using the default quartz() device and running the example line by >> line shows a blank device. If the device window is resized, however, >> the expected result appears. The example runs fine using x11(). The >> example also runs fine on both quartz() and x11() on my old x86 >> running under Sonoma 14.2.1. >> >>> sessionInfo() >> R version 4.3.2 Patched (2024-02-13 r85905) >> Platform: aarch64-apple-darwin20 (64-bit) >> Running under: macOS Sonoma 14.3.1 >> >> Matrix products: default >> BLAS: >> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib >> LAPACK: >> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; >> LAPACK version 3.11.0 >> >> locale: >> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 >> >> time zone: America/New_York >> tzcode source: internal >> >> attached base packages: >> [1] stats graphics grDevices utils datasets methods base >> >> loaded via a namespace (and not attached): >> [1] compiler_4.3.2 >> >> ___ >> R-SIG-Mac mailing list >> R-SIG-Mac@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
Thank you very much for your information, Michael. I had not realize that by changing the size of the window where all the plots should be, everything appears. The same thing happens to me too. Regards, Ángeles sessionInfo() R version 4.3.2 (2023-10-31) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Sonoma 14.3.1 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0 locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 time zone: Europe/Madrid tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.3.2 system_profiler SPHardwareDataType | grep Model Model Name: MacBook Air Model Identifier: Mac14,2 Model Number: Z161000GJY/A > El 16 feb 2024, a las 14:10, Michael Grundler escribió: > > I am also observing the same behavior as María with the 4.3.2 Patched > binary from mac.r-project.org running under Sonoma 14.3.1 on an m3 > mac. Using the default quartz() device and running the example line by > line shows a blank device. If the device window is resized, however, > the expected result appears. The example runs fine using x11(). The > example also runs fine on both quartz() and x11() on my old x86 > running under Sonoma 14.2.1. > >> sessionInfo() > R version 4.3.2 Patched (2024-02-13 r85905) > Platform: aarch64-apple-darwin20 (64-bit) > Running under: macOS Sonoma 14.3.1 > > Matrix products: default > BLAS: > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib > LAPACK: > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; > LAPACK version 3.11.0 > > locale: > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > time zone: America/New_York > tzcode source: internal > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] compiler_4.3.2 > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
Dear Simon, Thank you very much for your interest. Here is the information. I have downloaded R from CRAN: https://cloud.r-project.org/ sessionInfo() R version 4.3.2 (2023-10-31) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Sonoma 14.3.1 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0 locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 time zone: Europe/Madrid tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.3.2 system_profiler SPHardwareDataType | grep Model Model Name: MacBook Air Model Identifier: Mac14,2 Model Number: Z161000GJY/A And it happens to me the same as others who have written on the list about this issue: Using the default quartz() device and running the R’s help example of abline, line by line, shows a blank device. If the device window is resized, however, the expected result appears. Thank you very much. Best regards. Ángeles > El 18 feb 2024, a las 5:01, Simon Urbanek > escribió: > > Maria, > > can you, please, include the full output of sessionInfo() in R and > system_profiler SPHardwareDataType | grep Model > in Terminal? I cannot replicate it, either, but then we have no idea which > hardware and macOS you are using. > > Thanks, > Simon > > > >> On Feb 16, 2024, at 10:25 PM, María de los Ángeles Casares de Cal >> wrote: >> >> Dear Simon and anyone else who might be interested in this: >> >> I have studied in more detail the problem referred to in the message below, >> and can confirm that R does not work well on macOS when I do graphics >> (plots). >> I have only tested with the "abline” command, using the examples that are in >> R’s help. And it does not work. >> I have tested it on several computers, in Terminal and with RGUI. >> I have also checked it in RStudio in macOS (it does work) and with R in >> Windows (it does work). >> >> What I have done is the following: >> In the "abline" command help, the first example is: >> ## Setup up coordinate system (with x == y aspect ratio): >> >> plot >> (c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1) >> ## the x- and y-axis, and an integer grid >> >> abline >> (h = 0, v = 0, col = "gray60") >> >> text >> (1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1)) >> >> abline >> (h = -1:5, v = -2:3, col = "lightgray", lty = 3) >> >> abline >> (a = 1, b = 2, col = 2) >> >> text >> (1,3, "abline( 1, 2 )", col = 2, adj = c(-.1, -.1)) >> >> if I run line by line, R does not do the plots (only open the Quartz window). >> If I run all together, R does the plots sometimes yes and sometimes no. >> >> I have the latest stable version of XQuartz (2.8.5) >> >> What could be the problem? >> >> Thank you in advance. >> Best regards. >> María-Ángeles Casares-de-Cal >> >> >>> Inicio del mensaje reenviado: >>> >>> De: María de los Ángeles Casares de Cal >>> Asunto: Spanish version of R, version 4.3.2, does not work >>> Fecha: 14 de febrero de 2024, 20:29:09 CET >>> Para: r-sig-mac@r-project.org >>> >>> Hi everyone, >>> >>> I have a problem since I have installed the last version of R 4.3.2 >>> (spanish version) >>> R does not work! >>> >>> For example: >>> >>> x <- 1:20 #this is ok >>> y <- 10 + rnorm(n=20,mean=0,sd=1) #this is ok >>> plot(x,y,pch=20,col="red") #this is ok, but I have to run >>> some times this >>> model <- lm(y~x)#this is ok >>> summary(model) #this is ok >>> abline(model) #R does not plot the regression line in >>> the window where I have the points. >>> >>> (And this code in RStudio works well). >>> >>> (I have installed the last version of XQuartz.) >>> >>> I do not know what is the problem. >>> Perhaps, because is the Spanish version? >>> How can I install the English version? >>> >>> Any help? >>> Thank you in advance. >>> >>> Best regards. >>> María-Ángeles Casares-de-Cal >> > [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
Since I'm able to reproduce the issue as well... $ system_profiler SPHardwareDataType | grep Model Model Name: MacBook Pro Model Identifier: MacBookPro18,1 Model Number: Z14V0016HLL/A and > sessionInfo() R version 4.3.2 (2023-10-31) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Sonoma 14.3.1 As a slightly more minimal example, this reproduces the issue readily for me: plot(1); Sys.sleep(1); abline(h = 1, v = 1, col = "gray60") The plot with the single point is shown, but the two lines are not drawn. (They do get rendered later if I resize the Quartz window.) If I remove the `Sys.sleep(1)` call, then the single point and the two lines are all drawn together. My best guess is that this is related to the most recent Sonoma update; perhaps something has changed on the AppKit / Quartz side. Let me know if there's any other information I can try and provide. Best, Kevin On Sat, Feb 17, 2024 at 8:01 PM Simon Urbanek wrote: > > Maria, > > can you, please, include the full output of sessionInfo() in R and > system_profiler SPHardwareDataType | grep Model > in Terminal? I cannot replicate it, either, but then we have no idea which > hardware and macOS you are using. > > Thanks, > Simon > > > > > On Feb 16, 2024, at 10:25 PM, María de los Ángeles Casares de Cal > > wrote: > > > > Dear Simon and anyone else who might be interested in this: > > > > I have studied in more detail the problem referred to in the message below, > > and can confirm that R does not work well on macOS when I do graphics > > (plots). > > I have only tested with the "abline” command, using the examples that are > > in R’s help. And it does not work. > > I have tested it on several computers, in Terminal and with RGUI. > > I have also checked it in RStudio in macOS (it does work) and with R in > > Windows (it does work). > > > > What I have done is the following: > > In the "abline" command help, the first example is: > > ## Setup up coordinate system (with x == y aspect ratio): > > > > plot > > (c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1) > > ## the x- and y-axis, and an integer grid > > > > abline > > (h = 0, v = 0, col = "gray60") > > > > text > > (1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1)) > > > > abline > > (h = -1:5, v = -2:3, col = "lightgray", lty = 3) > > > > abline > > (a = 1, b = 2, col = 2) > > > > text > > (1,3, "abline( 1, 2 )", col = 2, adj = c(-.1, -.1)) > > > > if I run line by line, R does not do the plots (only open the Quartz > > window). > > If I run all together, R does the plots sometimes yes and sometimes no. > > > > I have the latest stable version of XQuartz (2.8.5) > > > > What could be the problem? > > > > Thank you in advance. > > Best regards. > > María-Ángeles Casares-de-Cal > > > > > >> Inicio del mensaje reenviado: > >> > >> De: María de los Ángeles Casares de Cal > >> Asunto: Spanish version of R, version 4.3.2, does not work > >> Fecha: 14 de febrero de 2024, 20:29:09 CET > >> Para: r-sig-mac@r-project.org > >> > >> Hi everyone, > >> > >> I have a problem since I have installed the last version of R 4.3.2 > >> (spanish version) > >> R does not work! > >> > >> For example: > >> > >> x <- 1:20#this is ok > >> y <- 10 + rnorm(n=20,mean=0,sd=1)#this is ok > >> plot(x,y,pch=20,col="red") #this is ok, but I have to run some > >> times this > >> model <- lm(y~x)#this is ok > >> summary(model) #this is ok > >> abline(model)#R does not plot the regression line > >> in the window where I have the points. > >> > >> (And this code in RStudio works well). > >> > >> (I have installed the last version of XQuartz.) > >> > >> I do not know what is the problem. > >> Perhaps, because is the Spanish version? > >> How can I install the English version? > >> > >> Any help? > >> Thank you in advance. > >> > >> Best regards. > >> María-Ángeles Casares-de-Cal > > > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
Maria, can you, please, include the full output of sessionInfo() in R and system_profiler SPHardwareDataType | grep Model in Terminal? I cannot replicate it, either, but then we have no idea which hardware and macOS you are using. Thanks, Simon > On Feb 16, 2024, at 10:25 PM, María de los Ángeles Casares de Cal > wrote: > > Dear Simon and anyone else who might be interested in this: > > I have studied in more detail the problem referred to in the message below, > and can confirm that R does not work well on macOS when I do graphics (plots). > I have only tested with the "abline” command, using the examples that are in > R’s help. And it does not work. > I have tested it on several computers, in Terminal and with RGUI. > I have also checked it in RStudio in macOS (it does work) and with R in > Windows (it does work). > > What I have done is the following: > In the "abline" command help, the first example is: > ## Setup up coordinate system (with x == y aspect ratio): > > plot > (c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1) > ## the x- and y-axis, and an integer grid > > abline > (h = 0, v = 0, col = "gray60") > > text > (1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1)) > > abline > (h = -1:5, v = -2:3, col = "lightgray", lty = 3) > > abline > (a = 1, b = 2, col = 2) > > text > (1,3, "abline( 1, 2 )", col = 2, adj = c(-.1, -.1)) > > if I run line by line, R does not do the plots (only open the Quartz window). > If I run all together, R does the plots sometimes yes and sometimes no. > > I have the latest stable version of XQuartz (2.8.5) > > What could be the problem? > > Thank you in advance. > Best regards. > María-Ángeles Casares-de-Cal > > >> Inicio del mensaje reenviado: >> >> De: María de los Ángeles Casares de Cal >> Asunto: Spanish version of R, version 4.3.2, does not work >> Fecha: 14 de febrero de 2024, 20:29:09 CET >> Para: r-sig-mac@r-project.org >> >> Hi everyone, >> >> I have a problem since I have installed the last version of R 4.3.2 (spanish >> version) >> R does not work! >> >> For example: >> >> x <- 1:20#this is ok >> y <- 10 + rnorm(n=20,mean=0,sd=1)#this is ok >> plot(x,y,pch=20,col="red") #this is ok, but I have to run some >> times this >> model <- lm(y~x)#this is ok >> summary(model) #this is ok >> abline(model)#R does not plot the regression line in >> the window where I have the points. >> >> (And this code in RStudio works well). >> >> (I have installed the last version of XQuartz.) >> >> I do not know what is the problem. >> Perhaps, because is the Spanish version? >> How can I install the English version? >> >> Any help? >> Thank you in advance. >> >> Best regards. >> María-Ángeles Casares-de-Cal > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
I am also having the same problems as described in this thread. Following the example code posted by María-Ángeles Casares-de-Cal, if I run the code line by line, additions to the plot do not appear unless I resize the window. If I select the code block and execute all at once, it is inconsistent, sometimes working fully, sometimes partially, sometimes not at all. R is installed from CRAN: R version 4.3.2 (2023-10-31) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Sonoma 14.3.1 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0 locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 time zone: America/New_York tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.3.2 XQuartz version 2.8.5. -Pascal Title On Feb 17, 2024 at 13:47 -0500, Kevin Ushey , wrote: > I'm seeing this as well. In case it's relevant, I saw something > similar, but the points do appear to get appropriately redrawn if I > resize the Quartz window. (The window is fairly jittery / jumpy when I > try to do so, though.) > > On Fri, Feb 16, 2024 at 12:17 PM roy wrote: > > > > On the following cfg: > > > > Intel macmini 2018 > > > > macos 14.3.1 > > > > R 4.1.2 > > > > XQuartz 2.8.5 > > > > RStudio 2023.03.0+386 > > > > Running the example from the "abline" command in R (cmd line) and RStudio, > > I get the same results that María-Ángeles and Michael G. described (i.e., > > no plots via R and plots via RStudiio). When I switched back to an older > > version of XQuartz (2.7.11) the plots worked well. > > > > cheers, roy > > > > > > On Fri, Feb 16, 2024 at 5:11 AM Michael Grundler > > wrote: > > > > > I am also observing the same behavior as María with the 4.3.2 Patched > > > binary from mac.r-project.org running under Sonoma 14.3.1 on an m3 > > > mac. Using the default quartz() device and running the example line by > > > line shows a blank device. If the device window is resized, however, > > > the expected result appears. The example runs fine using x11(). The > > > example also runs fine on both quartz() and x11() on my old x86 > > > running under Sonoma 14.2.1. > > > > > > > sessionInfo() > > > R version 4.3.2 Patched (2024-02-13 r85905) > > > Platform: aarch64-apple-darwin20 (64-bit) > > > Running under: macOS Sonoma 14.3.1 > > > > > > Matrix products: default > > > BLAS: > > > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib > > > LAPACK: > > > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; > > > LAPACK version 3.11.0 > > > > > > locale: > > > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > > > > > time zone: America/New_York > > > tzcode source: internal > > > > > > attached base packages: > > > [1] stats graphics grDevices utils datasets methods base > > > > > > loaded via a namespace (and not attached): > > > [1] compiler_4.3.2 > > > > > > On Fri, Feb 16, 2024 at 7:32 AM Michael Hall wrote: > > > > > > > > It also works for me on both my current m3 and also my old x86. > > > > > > > > I also always assumed Quartz meant XQuartz. However with neither > > > architecture did it seem to start XQuartz in order to render. > > > > > > > > Sonoma on both machines. M3 = R 4.3.2. X86 = R 4.3.1 > > > > ___ > > > > R-SIG-Mac mailing list > > > > R-SIG-Mac@r-project.org > > > > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > > > > > ___ > > > R-SIG-Mac mailing list > > > R-SIG-Mac@r-project.org > > > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > > > > > > [[alternative HTML version deleted]] > > > > ___ > > R-SIG-Mac mailing list > > R-SIG-Mac@r-project.org > > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
I'm seeing this as well. In case it's relevant, I saw something similar, but the points do appear to get appropriately redrawn if I resize the Quartz window. (The window is fairly jittery / jumpy when I try to do so, though.) On Fri, Feb 16, 2024 at 12:17 PM roy wrote: > > On the following cfg: > > Intel macmini 2018 > > macos 14.3.1 > > R 4.1.2 > > XQuartz 2.8.5 > > RStudio 2023.03.0+386 > > Running the example from the "abline" command in R (cmd line) and RStudio, > I get the same results that María-Ángeles and Michael G. described (i.e., > no plots via R and plots via RStudiio). When I switched back to an older > version of XQuartz (2.7.11) the plots worked well. > > cheers, roy > > > On Fri, Feb 16, 2024 at 5:11 AM Michael Grundler > wrote: > > > I am also observing the same behavior as María with the 4.3.2 Patched > > binary from mac.r-project.org running under Sonoma 14.3.1 on an m3 > > mac. Using the default quartz() device and running the example line by > > line shows a blank device. If the device window is resized, however, > > the expected result appears. The example runs fine using x11(). The > > example also runs fine on both quartz() and x11() on my old x86 > > running under Sonoma 14.2.1. > > > > > sessionInfo() > > R version 4.3.2 Patched (2024-02-13 r85905) > > Platform: aarch64-apple-darwin20 (64-bit) > > Running under: macOS Sonoma 14.3.1 > > > > Matrix products: default > > BLAS: > > > > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib > > LAPACK: > > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; > > LAPACK version 3.11.0 > > > > locale: > > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > > > time zone: America/New_York > > tzcode source: internal > > > > attached base packages: > > [1] stats graphics grDevices utils datasets methods base > > > > loaded via a namespace (and not attached): > > [1] compiler_4.3.2 > > > > On Fri, Feb 16, 2024 at 7:32 AM Michael Hall wrote: > > > > > > It also works for me on both my current m3 and also my old x86. > > > > > > I also always assumed Quartz meant XQuartz. However with neither > > architecture did it seem to start XQuartz in order to render. > > > > > > Sonoma on both machines. M3 = R 4.3.2. X86 = R 4.3.1 > > > ___ > > > R-SIG-Mac mailing list > > > R-SIG-Mac@r-project.org > > > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > > > ___ > > R-SIG-Mac mailing list > > R-SIG-Mac@r-project.org > > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
On the following cfg: Intel macmini 2018 macos 14.3.1 R 4.1.2 XQuartz 2.8.5 RStudio 2023.03.0+386 Running the example from the "abline" command in R (cmd line) and RStudio, I get the same results that María-Ángeles and Michael G. described (i.e., no plots via R and plots via RStudiio). When I switched back to an older version of XQuartz (2.7.11) the plots worked well. cheers, roy On Fri, Feb 16, 2024 at 5:11 AM Michael Grundler wrote: > I am also observing the same behavior as María with the 4.3.2 Patched > binary from mac.r-project.org running under Sonoma 14.3.1 on an m3 > mac. Using the default quartz() device and running the example line by > line shows a blank device. If the device window is resized, however, > the expected result appears. The example runs fine using x11(). The > example also runs fine on both quartz() and x11() on my old x86 > running under Sonoma 14.2.1. > > > sessionInfo() > R version 4.3.2 Patched (2024-02-13 r85905) > Platform: aarch64-apple-darwin20 (64-bit) > Running under: macOS Sonoma 14.3.1 > > Matrix products: default > BLAS: > > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib > LAPACK: > /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; > LAPACK version 3.11.0 > > locale: > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > time zone: America/New_York > tzcode source: internal > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] compiler_4.3.2 > > On Fri, Feb 16, 2024 at 7:32 AM Michael Hall wrote: > > > > It also works for me on both my current m3 and also my old x86. > > > > I also always assumed Quartz meant XQuartz. However with neither > architecture did it seem to start XQuartz in order to render. > > > > Sonoma on both machines. M3 = R 4.3.2. X86 = R 4.3.1 > > ___ > > R-SIG-Mac mailing list > > R-SIG-Mac@r-project.org > > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
I am also observing the same behavior as María with the 4.3.2 Patched binary from mac.r-project.org running under Sonoma 14.3.1 on an m3 mac. Using the default quartz() device and running the example line by line shows a blank device. If the device window is resized, however, the expected result appears. The example runs fine using x11(). The example also runs fine on both quartz() and x11() on my old x86 running under Sonoma 14.2.1. > sessionInfo() R version 4.3.2 Patched (2024-02-13 r85905) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Sonoma 14.3.1 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0 locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 time zone: America/New_York tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.3.2 On Fri, Feb 16, 2024 at 7:32 AM Michael Hall wrote: > > It also works for me on both my current m3 and also my old x86. > > I also always assumed Quartz meant XQuartz. However with neither architecture > did it seem to start XQuartz in order to render. > > Sonoma on both machines. M3 = R 4.3.2. X86 = R 4.3.1 > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
It also works for me on both my current m3 and also my old x86. I also always assumed Quartz meant XQuartz. However with neither architecture did it seem to start XQuartz in order to render. Sonoma on both machines. M3 = R 4.3.2. X86 = R 4.3.1 ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
You need to make clear what graphics device and R build you used: the default on a CRAN build of macOS is quartz(), which has nothing to do with XQuartz. But is this a CRAN build? AFAIK quartz() is not the default device in RStudio. And also give the information (sessionInfo()) requested in the posting guide. As Christophe Dutang has posted, this works for him on arm64 macOS (and also for me). CRAN provides both Intel and arm64 builds As the posting guide also asks, you should try R-patched: binary installers are available at https://mac.r-project.org/ for both architectures. The macOS GUI is usually called R.app (see e.g. the R-admin manual). RGUI is for Windows. On 16/02/2024 09:25, María de los Ángeles Casares de Cal via R-SIG-Mac wrote: Dear Simon and anyone else who might be interested in this: I have studied in more detail the problem referred to in the message below, and can confirm that R does not work well on macOS when I do graphics (plots). I have only tested with the "abline” command, using the examples that are in R’s help. And it does not work. I have tested it on several computers, in Terminal and with RGUI. I have also checked it in RStudio in macOS (it does work) and with R in Windows (it does work). What I have done is the following: In the "abline" command help, the first example is: ## Setup up coordinate system (with x == y aspect ratio): plot(c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1) ## the x- and y-axis, and an integer grid abline(h = 0, v = 0, col = "gray60") text(1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1)) abline(h = -1:5, v = -2:3, col = "lightgray", lty = 3) abline(a = 1, b = 2, col = 2) text(1,3, "abline( 1, 2 )", col = 2, adj = c(-.1, -.1)) if I run line by line, R does not do the plots (only open the Quartz window). If I run all together, R does the plots sometimes yes and sometimes no. I have the latest stable version of XQuartz (2.8.5) What could be the problem? Thank you in advance. Best regards. María-Ángeles Casares-de-Cal Inicio del mensaje reenviado: De: María de los Ángeles Casares de Cal Asunto: Spanish version of R, version 4.3.2, does not work Fecha: 14 de febrero de 2024, 20:29:09 CET Para: r-sig-mac@r-project.org Hi everyone, I have a problem since I have installed the last version of R 4.3.2 (spanish version) R does not work! For example: x <- 1:20#this is ok y <- 10 + rnorm(n=20,mean=0,sd=1)#this is ok plot(x,y,pch=20,col="red")#this is ok, but I have to run some times this model <- lm(y~x)#this is ok summary(model) #this is ok abline(model) #R does not plot the regression line in the window where I have the points. (And this code in RStudio works well). (I have installed the last version of XQuartz.) I do not know what is the problem. Perhaps, because is the Spanish version? How can I install the English version? Any help? Thank you in advance. Best regards. María-Ángeles Casares-de-Cal [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac -- Brian D. Ripley, rip...@stats.ox.ac.uk Emeritus Professor of Applied Statistics, University of Oxford ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
I don't think you have described how you installed R. Did you use the installer from CRAN, or build it yourself, or get it from some other source like Homebrew or MacPorts? Duncan Murdoch On 16/02/2024 4:25 a.m., María de los Ángeles Casares de Cal via R-SIG-Mac wrote: Dear Simon and anyone else who might be interested in this: I have studied in more detail the problem referred to in the message below, and can confirm that R does not work well on macOS when I do graphics (plots). I have only tested with the "abline” command, using the examples that are in R’s help. And it does not work. I have tested it on several computers, in Terminal and with RGUI. I have also checked it in RStudio in macOS (it does work) and with R in Windows (it does work). What I have done is the following: In the "abline" command help, the first example is: ## Setup up coordinate system (with x == y aspect ratio): plot(c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1) ## the x- and y-axis, and an integer grid abline(h = 0, v = 0, col = "gray60") text(1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1)) abline(h = -1:5, v = -2:3, col = "lightgray", lty = 3) abline(a = 1, b = 2, col = 2) text(1,3, "abline( 1, 2 )", col = 2, adj = c(-.1, -.1)) if I run line by line, R does not do the plots (only open the Quartz window). If I run all together, R does the plots sometimes yes and sometimes no. I have the latest stable version of XQuartz (2.8.5) What could be the problem? Thank you in advance. Best regards. María-Ángeles Casares-de-Cal Inicio del mensaje reenviado: De: María de los Ángeles Casares de Cal Asunto: Spanish version of R, version 4.3.2, does not work Fecha: 14 de febrero de 2024, 20:29:09 CET Para: r-sig-mac@r-project.org Hi everyone, I have a problem since I have installed the last version of R 4.3.2 (spanish version) R does not work! For example: x <- 1:20#this is ok y <- 10 + rnorm(n=20,mean=0,sd=1)#this is ok plot(x,y,pch=20,col="red")#this is ok, but I have to run some times this model <- lm(y~x)#this is ok summary(model) #this is ok abline(model) #R does not plot the regression line in the window where I have the points. (And this code in RStudio works well). (I have installed the last version of XQuartz.) I do not know what is the problem. Perhaps, because is the Spanish version? How can I install the English version? Any help? Thank you in advance. Best regards. María-Ángeles Casares-de-Cal [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
Dear Maria, It works perfectly my MacBook (Apple M1). > R.version _ platform aarch64-apple-darwin20 arch aarch64 os darwin20 system aarch64, darwin20 status major 4 minor 3.2 year 2023 month 10 day31 svn rev85441 language R version.string R version 4.3.2 (2023-10-31) nickname Eye Holes Do you use the correct version of R? Christophe - Christophe DUTANG LJK, Ensimag, Grenoble INP, UGA, France ILB research fellow Web: http://dutangc.free.fr - > Le 16 févr. 2024 à 10:25, María de los Ángeles Casares de Cal via R-SIG-Mac > a écrit : > > Dear Simon and anyone else who might be interested in this: > > I have studied in more detail the problem referred to in the message below, > and can confirm that R does not work well on macOS when I do graphics (plots). > I have only tested with the "abline” command, using the examples that are in > R’s help. And it does not work. > I have tested it on several computers, in Terminal and with RGUI. > I have also checked it in RStudio in macOS (it does work) and with R in > Windows (it does work). > > What I have done is the following: > In the "abline" command help, the first example is: > ## Setup up coordinate system (with x == y aspect ratio): > plot(c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1) > ## the x- and y-axis, and an integer grid > abline(h = 0, v = 0, col = "gray60") > text(1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1)) > abline(h = -1:5, v = -2:3, col = "lightgray", lty = 3) > abline(a = 1, b = 2, col = 2) > text(1,3, "abline( 1, 2 )", col = 2, adj = c(-.1, -.1)) > > if I run line by line, R does not do the plots (only open the Quartz window). > If I run all together, R does the plots sometimes yes and sometimes no. > > I have the latest stable version of XQuartz (2.8.5) > > What could be the problem? > > Thank you in advance. > Best regards. > María-Ángeles Casares-de-Cal > > >> Inicio del mensaje reenviado: >> >> De: María de los Ángeles Casares de Cal >> Asunto: Spanish version of R, version 4.3.2, does not work >> Fecha: 14 de febrero de 2024, 20:29:09 CET >> Para: r-sig-mac@r-project.org >> >> Hi everyone, >> >> I have a problem since I have installed the last version of R 4.3.2 (spanish >> version) >> R does not work! >> >> For example: >> >> x <- 1:20 #this is ok >> y <- 10 + rnorm(n=20,mean=0,sd=1) #this is ok >> plot(x,y,pch=20,col="red") #this is ok, but I have to run some >> times this >> model <- lm(y~x)#this is ok >> summary(model) #this is ok >> abline(model) #R does not plot the regression line in the >> window where I have the points. >> >> (And this code in RStudio works well). >> >> (I have installed the last version of XQuartz.) >> >> I do not know what is the problem. >> Perhaps, because is the Spanish version? >> How can I install the English version? >> >> Any help? >> Thank you in advance. >> >> Best regards. >> María-Ángeles Casares-de-Cal > > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
[R-SIG-Mac] Graphics in R, version 4.3.2, does not work well in MacOS
Dear Simon and anyone else who might be interested in this: I have studied in more detail the problem referred to in the message below, and can confirm that R does not work well on macOS when I do graphics (plots). I have only tested with the "abline” command, using the examples that are in R’s help. And it does not work. I have tested it on several computers, in Terminal and with RGUI. I have also checked it in RStudio in macOS (it does work) and with R in Windows (it does work). What I have done is the following: In the "abline" command help, the first example is: ## Setup up coordinate system (with x == y aspect ratio): plot(c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1) ## the x- and y-axis, and an integer grid abline(h = 0, v = 0, col = "gray60") text(1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1)) abline(h = -1:5, v = -2:3, col = "lightgray", lty = 3) abline(a = 1, b = 2, col = 2) text(1,3, "abline( 1, 2 )", col = 2, adj = c(-.1, -.1)) if I run line by line, R does not do the plots (only open the Quartz window). If I run all together, R does the plots sometimes yes and sometimes no. I have the latest stable version of XQuartz (2.8.5) What could be the problem? Thank you in advance. Best regards. María-Ángeles Casares-de-Cal > Inicio del mensaje reenviado: > > De: María de los Ángeles Casares de Cal > Asunto: Spanish version of R, version 4.3.2, does not work > Fecha: 14 de febrero de 2024, 20:29:09 CET > Para: r-sig-mac@r-project.org > > Hi everyone, > > I have a problem since I have installed the last version of R 4.3.2 (spanish > version) > R does not work! > > For example: > > x <- 1:20 #this is ok > y <- 10 + rnorm(n=20,mean=0,sd=1) #this is ok > plot(x,y,pch=20,col="red")#this is ok, but I have to run some > times this > model <- lm(y~x)#this is ok > summary(model)#this is ok > abline(model) #R does not plot the regression line in > the window where I have the points. > > (And this code in RStudio works well). > > (I have installed the last version of XQuartz.) > > I do not know what is the problem. > Perhaps, because is the Spanish version? > How can I install the English version? > > Any help? > Thank you in advance. > > Best regards. > María-Ángeles Casares-de-Cal [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac