Opened 11 years ago
Closed 11 years ago
#39228 closed defect (fixed)
R +cairo requires +x11 variant unnecessarily in some cases
Reported by: | mamoll (Mark Moll) | Owned by: | kjellpk (Kjell Konis) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager) | |
Port: | R |
Description
If the cairo port is installed with the +quartz variant, then R compiles and runs just fine with only the +cairo variant and no +x11 variant. Is there a way to detect how cairo is installed and enable +x11 as necessary? Maybe check whether ${prefix}/lib/pkgconfig/cairo-quartz.pc exists?
Attachments (1)
Change History (12)
comment:1 Changed 11 years ago by mamoll (Mark Moll)
Summary: | R +cairo require +x11 variant unnecessarily in some cases → R +cairo requires +x11 variant unnecessarily in some cases |
---|
comment:2 Changed 11 years ago by kjellpk (Kjell Konis)
Changed 11 years ago by mamoll (Mark Moll)
Attachment: | Screen Shot 2013-05-24 at 6.48.27 PM.png added |
---|
R +quartz -x11
comment:3 Changed 11 years ago by mamoll (Mark Moll)
Quartz is used for graphical windows. See attached screenshot.
comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
comment:5 follow-up: 8 Changed 11 years ago by kjellpk (Kjell Konis)
Just FYI, #40304 contains a patch related to this bug. I updated the description of the cairo variant to make it clear that cairo is only used by R's x11 graphics device.
comment:6 follow-up: 7 Changed 11 years ago by mamoll (Mark Moll)
Maybe I don't understand how R works, but it seems to me that R doesn't have an X11 graphics device, but a cairo graphics device. Cairo can be installed without x11. My screenshot shows that R runs just fine without X11.
comment:7 Changed 11 years ago by kjellpk (Kjell Konis)
Replying to mmoll@…:
Maybe I don't understand how R works, but it seems to me that R doesn't have an X11 graphics device, but a cairo graphics device. Cairo can be installed without x11. My screenshot shows that R runs just fine without X11.
Your screenshot shows a quartz graphics device. That's why it says "Quartz ..." in the title bar. The only way to use cairo in R on OS X is to open an x11 graphics device using the optional 'type = "cairo"' argument. See ?x11. R does run just fine without x11, it just doesn't use cairo.
comment:8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
Replying to kjell.konis@…:
Just FYI, #40304 contains a patch related to this bug.
#40304 was resolved. Is there anything left to do to close this ticket?
comment:11 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Can you elaborate on what "runs just fine" means? Also, I think the only way to use cairo in R is through the x11 function. If x11 is not installed what are you expecting to happen?