posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.59k stars 79 forks source link

R graphics device size incorrectly calibrated #1349

Open hadley opened 1 year ago

hadley commented 1 year ago

Positron Version: 2023.09.0 (Universal) build 187

Steps to reproduce the issue:

Run the following R code:

library(grid)
grid.segments(
  unit(0.5, "npc") - unit(5, "cm"),
  unit(0.5, "npc"),
  unit(0.5, "npc") + unit(5, "cm"),
  unit(0.5, "npc")
)

What did you expect to happen?

The line should be 10cm long, not 8.8cm.

Were there any error messages in the output or Developer Tools console?

No

kevinushey commented 1 year ago

The line should be 10cm long, not 8.8cm.

How do you check the length of the generated line here?

hadley commented 1 year ago

I put a ruler up against my screen 😄