From wolfram at fischer-zim.ch  Fri Mar 30 09:48:00 2007
From: wolfram at fischer-zim.ch (wolfram at fischer-zim.ch)
Date: Fri, 30 Mar 2007 09:48:00 +0200 (CEST)
Subject: [Rd] use of ... in some functions does not work (PR#9591)
Message-ID: <20070330074800.E82F85AC5B@slim.kubism.ku.dk>

Consider:

	x.lm <- function( ... ) lm( ... )
	x.xyplot <- function( ... ) xyplot( ... )
	x.dotplot <- function( ... ) dotplot( ... )

	lm( dist ~ speed, data=cars, weight=speed )
	x.lm( dist ~ speed, data=cars, weight=speed )

	xyplot( variety ~ yield | site, groups=year, data=barley )
	x.xyplot( variety ~ yield | site, groups=year, data=barley )

	dotplot( variety ~ yield | site, groups=year, data=barley )
	x.dotplot( variety ~ yield | site, groups=year, data=barley )

Out of the x.* functions only the x.xyplot function works.
The others results in a message like:
	Error in eval(expr, envir, enclos) : ..2
	used in an incorrect context, no ... to look in

Regards - Wolfram



[Rd] use of ... in some functions does not work (PR#9591)
wolfram at fischer-zim.ch