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
Upgrade R (r-project.org) #12057
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
This ticket obsoletes #8868 |
comment:3
Hmm, I don't mind this in theory. I'd want to test it out a little. Can you point to one of the R announcements where they end up fixing this? They have very detailed and thorough announcements, which I usually cannot make it all the way through when searching for this sort of thing. Also, does this mean we don't need libpango or cairo or all that stuff? Or would we still need that? Some relevant things.
Here are a bunch of other relevant tickets which perhaps (?) should be addressed here, or at least mentioned.
|
comment:4
You still need cairo+pango+fontconfig+fonts; R doesn't include fonts or a font renderer. But it works now in the virtual machine without X installed. I don't have a reference for the release announcement where it was fixed. Given that we get relatively frequent requests for R graphics in the virtual machine I would prefer it if we could get this ticket reviewed asap. Really all there is to do is regression testing, and the easiest way to do so is to run it on the build bot. |
Changed keywords from R r-project graphics to R spkg r-project graphics PNG X11 |
Replying to @vbraun:
You can also search trac for "R" with Google. I intentionally did not (yet) update R or RPy on #9906 or #9668. #11970 is rather unrelated to R itself; it fixes the readline spkg. #10967 could in principle be closed as invalid, as the R script in |
comment:6
Can we get the updated R spkg into Sage before fixing the laundry list of unrelated issues? None of the tickets leif mentioned is close to resolution. This ticket is ready to be reviewed and included right now, and I think a large group of users will benefit from being able to use graphics in the virtual machine. |
comment:7
Replying to @vbraun:
I think that given Leif's lukewarmness on this and Volker's adamance, along with my own natural inclination, let's go for it. My guess is that we may not even need to backport everything for the others... ? Testing on OSX 10.4 PPC now :) Did you notice whether there were any needed patches in a |
This comment has been minimized.
This comment has been minimized.
comment:8
Patch attached for some small changes in |
comment:9
Questions:
cause problems if someone wants to use the
Once I'm done testing it installs I'll be more formal in looking at this. What a great thing to do, thank you much! |
comment:10
On sage.math, I get:
|
comment:11
Replying to @kcrisman:
Functions can't be lvalues in R, so its fine though maybe not beautiful:
I only patched up the sphinx breakage where I fixed things. There are still 2kloc to go, but I didn't want to break each and every patch for
You just have to recompile the new R in my virtual machine and it'll basically work. You need to install fonts, though, otherwise all text in the plots will be emtpy squares. |
Attachment: trac_12057_fix_doctests.patch.gz Minor docstring fix. |
comment:12
Replying to @jdemeyer:
I just built on sage.math and it worked for me (20x parallel). I'm using sage-4.8.alpha2, though. Did you merge anything in alpha3 that might cause this? |
comment:13
Replying to @vbraun:
Well, it could be some strange error happening only sporadically. Or, an error which happens only if Sage is built from scratch (as opposed to installing the spkg in an existing Sage build). I will try again later.
I don't think so. |
comment:14
For what it's worth, I took sage-4.8.alpha2, replaced the R spkg with this one, and merged the Sage library patch. Then I built from scratch (on sage.math) and all tests passed. I'm also trying on OS X 10.6.8: the build has succeeded, and doctests are still going. |
comment:24
Jeroen, what else needs to be done for positive review? |
Reviewer: Karl-Dieter Crisman, Jeroen Demeyer |
comment:25
Replying to @kcrisman:
I don't know, I haven't actually reviewed the ticket. I just tried to install it on various configurations. |
comment:27
I haven't checked that it fixes the problems mentioned in the ticket, but apart from that: looks good. The spkg could do with some cleaning up (also, who's idea was it to put a spkg inside a spkg???), but I don't want to force this. So, positive_review. |
comment:28
Replying to @jdemeyer:
And there are plenty of other tickets open about those things in any case :) |
Merged: sage-4.8.alpha4 |
comment:30
With this new version, this doctest is problematic (line 352):
On my Mac OS X 10.6.8 box, doctesting this starts up X Windows. This is new: it didn't do this in Sage 4.8.alpha3.
|
comment:31
I don't have a local OSX machine, so I can't debug it myself. Does it also happen if you start R and type in
change anything? |
comment:32
Replying to @vbraun:
Yes. It also reports
Yes, X11 doesn't start, and it reports "False" for png:
(I don't know why there are leading spaces in the returned string " png".) |
comment:33
Does R just start up X11 or does it also show anything in it? Can you strace the R execution and see where it executes X? |
comment:34
Replying to @jhpalmieri:
Wow, that is really unexpected. Also weird, because I tested the entire library overnight on my local 4.8.alpha4 (for another ticket) and nothing happened like that, or I would have noticed this morning.
Of course, I also get
Your problem is that someone Sage got compiled with png support! It's not supposed to on Mac, we try to configure it to use (only) Aqua. Hence the doctest being a little unusual:
My guess is you have something set in your preferences or elsewhere that caused R to pick up a system version of something. In general, getting R to compile on Mac with png support is interesting and hackish - I can't find the page I'm looking for right now, but it's referenced somewhere on one of the previous "get graphics in R in Sage to work" Trac tickets. In other words, while not ideal, I wouldn't call this something to unmerge this new spkg for. |
comment:35
vbraun:
X11 just starts up. It doesn't seem to have any windows running. I don't have strace installed on this computer, and I wouldn't know how to use it if I did ;) By the way, if I log into an OS X box remotely, I don't have this problem. It must correctly detect that I can't run X11, and it also says that I don't have 'png' capabilities. kcrisman: Do you have X11 installed on your Mac? Maybe if it's not installed, it doesn't go through this check and returns "FALSE" for png capabilities. I remember seeing something about compiling R with png support on http://ask.sagemath.org/, but I don't remember beyond that. I don't think I have a particularly unusual setup, but who knows what R looks at? In the install log for R, I see this:
Anyway, I'm not suggesting unmerging the spkg, but fixing the doctest somehow (in a followup ticket, if that's best). Can we do the equivalent in Sage of
without breaking things on Linux or Solaris? |
comment:36
when starting up the R pexpect interface? In any case, I prefer that you make a new ticket and move the discussion there. |
comment:37
Yes, I do.
Be sure to cc: me and Jason on that, then. |
comment:38
Followup ticket is #12172 |
comment:39
On OS X 10.6.8 I cannot install this spkg in sage-4.8.alpha3 (I build the alpha3 from source so the old spkg does install). Doing
Hangs as described on: The guilty command is: |
comment:40
Replying to @koffie:
Questions:
Usually we've found that R problems are related to it picking up system versions or variables. I'd recommend we open a new ticket for this, though, since "most" OS X 10.6 systems seem to be just fine. |
comment:41
On the new ticket it would also be useful to attach dtrace to the hanging R process to see what it is doing. |
comment:42
Ok, I created #12201 . I try to answer your questions there. |
The current version of R (r-project) disables graphics if no X11 is available even though
r.capabilities()
states that PNG is enabled. But you can't generate PNGs, which is why R graphics is broken in the Sage virtual machine. This is fixed in the newest upstream version, of which I made a new spkg.There is no other change except for the source code and a rediffed
patches/R.sh.in
On an unrelated note, it would be nice if tickets talking about R would contain "r-project" on trac since it is otherwise hopeless to search for.
Apply:
The upgraded spkg also fixes #12065.
CC: @nexttime @jdemeyer @jasongrout
Component: packages: standard
Keywords: R spkg r-project graphics PNG X11
Author: Volker Braun
Reviewer: Karl-Dieter Crisman, Jeroen Demeyer
Merged: sage-4.8.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/12057
The text was updated successfully, but these errors were encountered: