Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing Pango support in R 3.x for openSUSE 15.6 #235

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

glin
Copy link
Contributor

@glin glin commented Aug 3, 2024

Fix missing Pango support in R 3.x for openSUSE 15.6. Same as #120 for Ubuntu 22 a while back. This was a new thing in SUSE 15.6, and wasn't caught by the tests because we don't test R 3.x anymore. I've added a test for R 3.6, since we have to support it longer term than usual.

The error was with running any graphics device, like png():

> png()
Error in .External2(C_X11, paste0("png::", filename), g$width, g$height,  : 
  unable to start device PNG
In addition: Warning message:
In png() : unable to open connection to X11 display ''

# This should be cairo
> getOption("bitmapType")
[1] "Xlib"

And Pango now depending on PCRE2 in SUSE 15.6:

$ zypper in pango-devel

The following 120 NEW packages are going to be installed:
  ... libpango-1_0-0 libpcre2-16-0 libpcre2-32-0 libpcre2-posix3
  ...

After the fix, the tests should pass and png() should work again

@glin glin requested a review from christierney August 3, 2024 00:43
On R <= 3.6, running png() or similar was returning an error, and
getOption("bitmapType") returned "Xlib" instead of "cairo" as expected.
@glin glin removed the request for review from christierney August 3, 2024 01:48
@glin glin merged commit 75a683c into main Aug 6, 2024
228 checks passed
@glin glin deleted the fix-pango-opensuse156 branch August 6, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants