Closed willgearty closed 1 year ago
It's probably caused by different versions of librsvg, rather than the OS per sé.
Ah, you are right, the Windows package comes with librsvg 2.48.8, whereas I installed librsvg2-dev 2.52.5 in my Ubuntu environment. I don't see any other versions available for download for Ubuntu via apt, unless I'm looking in the wrong place? Or maybe there's a way to update the version on my Windows machine?
Ultimately, this is just for my R CMD checks via Github Actions. Is there a way to guarantee the librsvg version is consistent across the different GA machines?
I was able to resolve this by switching to using Ubuntu 20.04 for my Github Actions tests. It looks like the most recent version of librsvg on Ubuntu 20.04 is only 2.48.9, which seems close enough to 2.48.8 to not cause the issue anymore.
I've found that the dimensions of the output of
rsvg_raw()
appear to be somewhat OS-dependent.Here's a reproducible example with R 4.2.2:
When I look at the original svg file, the width is 1728.7859 and the height is 943.78149, so perhaps this is a rounding issue?