From ramon-diaz@teleline.es  Fri Oct 13 18:07:46 2000
From: ramon-diaz@teleline.es (Ramon Diaz-Uriarte)
Date: Fri, 13 Oct 2000 19:07:46 +0200
Subject: [Rd] works in R-1.1.1 but not in R-development; why?
In-Reply-To: <200010121903.OAA12130@goose.stat.umn.edu>
References: <200010121903.OAA12130@goose.stat.umn.edu>
Message-ID: <00101319240704.01544@ligarto>

Thanks a lot to Thomas Lumley, Peter Dalgaard, and Luke Tierney for their
answers. 


I think I understand why the function failed, and the workaorunds. However,
would it be appropriate if a call such as:


my.function <- function(formula, data){
# other stuff
    lm(formula = formula, data = data, weights = data$x2)
} 

my.function(formula, datai)


where to return an error, instead of simply ignoring the weights=data$x2
argument? (especially since such a thing used to work and might be used in
other code)

Ramon
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] works in R-1.1.1 but not in R-development; why?
Ramon Diaz-Uriarte