Ask Your Question

dhousman's profile - activity

2018-05-19 07:55:10 -0500 received badge  Student (source)
2018-05-15 06:40:24 -0500 commented answer How can I get R graphics to work with the Windows binary install of Sage 8.2?

I have done as you suggested. Thank you!

2018-05-15 06:10:39 -0500 received badge  Editor (source)
2018-05-14 17:15:00 -0500 asked a question How can I get R graphics to work with the Windows binary install of Sage 8.2?

I installed Sage 8.2 with the Windows binary. In a Sage notebook, I executed the following commands:

data = [2, 3, 7, 8, 10, 11]
print median(data)
print r.quantile(data,.5)
r.boxplot(data)

This works in SageMathCell (lines 2 and 3 returning 15/2 and line 4 returning an object that includes a displayed boxplot); however, in Sage 8.2 Notebook on my Windows machine, line 4 returns [1] 2, and the command

r.png()

returns a Python traceback that includes "...\SageMath-8.2.exe is not a valid Win32 application."

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-3-5d43610b342f> in <module>()
----> 1 r.png()

/opt/sagemath-8.1/local/lib/python2.7/site-packages/sage/interfaces/r.py in png(self, *args, **kwds)
    445         t = r.eval('capabilities("aqua")')
    446         if "TRUE" not in s+t:
--> 447             raise RuntimeError("R was not compiled with PNG support")
    448 
    449         from sage.server.support import EMBEDDED_MODE

RuntimeError: R was not compiled with PNG support

When I searched on various words, I kept coming upon information from about 6-8 years ago dealing with different headers in the compile phase and the presence or absence of an X11 server. Do I really need to install an X11 server, download the SageMath source, make a variety of compiler choices, and compile myself?