R-beta: Bug or feature?

Bill Venables wvenable at attunga.stats.adelaide.edu.au
Sun Aug 17 10:29:58 CEST 1997


Here is a difference between R-0.50-a3 and S that surprised me

> x
 [1]  1  2  3  4  5  6  7  8  9 10

> f1
function (x, nam = deparse(substitute(x))) 
{
        x <- x
        nam
}

> f2
function (x, nam = deparse(substitute(x))) 
{
        nam <- nam
        x <- x
        nam
}

> f2(x)
[1] "x"

> f1(x)
[1] "c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)"

-- 
Bill Venables, Head, Dept of Statistics,    Tel.: +61 8 8303 5418
University of Adelaide,                     Fax.: +61 8 8303 3696
South AUSTRALIA.     5005.   Email: Bill.Venables at adelaide.edu.au
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the R-help mailing list