tck crash (PR#384)

maechler@stat.math.ethz.ch maechler@stat.math.ethz.ch
Wed, 22 Dec 1999 10:51:12 +0100 (MET)


>>>>> On Wed, 22 Dec 1999 10:05:44 +0100 (MET), plindsey@alpha.luc.ac.be said:

    plindsey> The following crashes R0.90.1 on Intel Linux.
    plindsey> This is what some of my students did:

    plindsey> plot.new()
    plindsey> plot.window(0:1,0:1)
    plindsey> axis(1,tck=0:1)

Thank you for the bug report!

It also crashes on our Solaris platform, and with the newest "developers"
version.  
However, *only* when no device has been created previously in the current R
session, i.e., PREpending 

	par("usr") ; dev.off()

to your three commands gives the correct error message
  >>> Error in par(args) : parameter "tck" has the wrong length

--

Remark / Question :

 I think I would rather not have my students use low-level functions such
 as   plot.new()  and  plot.window()...

 Is there a reason they need these instead of  plot()/lines()/.... etc ?

Martin Maechler <maechler@stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._