Liaw, Andy
2002-Sep-06 13:47 UTC
[R] printing from windows() device when running R under ESS
Sorry for the cross-post: not sure whether it's Rterm or ESS (or something else?)... I'm running R (1.5.0 patched 2002-05-09, compiled from source on WinNT4) under ESS 5.1.21 with XEmacs 21.4.6. When I plotted a graph on the windows() device, and then use the menu in the R graphics window to print the graph, the printer selection dialog box does not show up until I go to the *R* buffer and hit return there. Anyone have any ideas? Regards, Andy Andy I. Liaw, PhD Biometrics Research Phone: (732) 594-0820 Merck & Co., Inc. Fax: (732) 594-1565 P.O. Box 2000, RY84-16 Rahway, NJ 07065 mailto:andy_liaw at merck.com ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. ============================================================================= -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
ripley@stats.ox.ac.uk
2002-Sep-06 18:16 UTC
[R] printing from windows() device when running R under ESS
On Fri, 6 Sep 2002, Liaw, Andy wrote:> Sorry for the cross-post: not sure whether it's Rterm or ESS (or something > else?)... > > I'm running R (1.5.0 patched 2002-05-09, compiled from source on WinNT4) > under ESS 5.1.21 with XEmacs 21.4.6. When I plotted a graph on the > windows() device, and then use the menu in the R graphics window to print > the graph, the printer selection dialog box does not show up until I go to > the *R* buffer and hit return there. Anyone have any ideas?Yes. ESS runs Rterm at the end of a pipe, and that starves the main loop (whereas interactive Rterm uses a separate thread that trickles the main loop). NTemacs (and I presume XEmacs) fudges the absence of pty's on Windows. It's a wonder it works at all. This could be solved if someone wants to rewrite Rterm -ess to use a separate thread, but that's down to the small community of emacs/ess/Windows/inferior-R-mode users to find a volunteer. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._