ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 14 May 2018 21:54:07 +0200How can I get R graphics to work with the Windows binary install of Sage 8.2?https://ask.sagemath.org/question/42343/how-can-i-get-r-graphics-to-work-with-the-windows-binary-install-of-sage-82/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?dhousmanMon, 14 May 2018 21:54:07 +0200https://ask.sagemath.org/question/42343/