Skip to content
Prev 14653 / 15075 Next

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
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
<simon.urbanek at r-project.org> wrote: