Re: [Rd] Enlightenment sought and a possible buglet in vector.Rd

2005-12-04 Thread Berwin A Turlach
G'day Brian, > "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> writes: >> I found in the R language definition manual the passage that >> discourages users of assigning objects within function calls >> since it is not guaranteed that the assignment is ever made >> because of R'

Re: [Rd] Enlightenment sought and a possible buglet in vector.Rd

2005-12-04 Thread Berwin A Turlach
G'day Brian, > "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> writes: BDR> On Fri, 2 Dec 2005, Berwin A Turlach wrote: [...] >> The second behaviour that I cannot explain was produced by code >> written by somebody else, namely: [...] >> The documentation of function() sa

Re: [Rd] Enlightenment sought and a possible buglet in vector.Rd

2005-12-02 Thread Prof Brian Ripley
On Fri, 2 Dec 2005, Berwin A Turlach wrote: > Secondly, I stumbled across two behaviours of R that I cannot explain > but would like to know why R behaves as it does. But since I expect > the explanations to be quite technical, I though that r-devel is the > more appropriate list to ask on than r

Re: [Rd] Enlightenment sought and a possible buglet in vector.Rd

2005-12-02 Thread Prof Brian Ripley
On Fri, 2 Dec 2005, Berwin A Turlach wrote: [...] > The second behaviour that I cannot explain was produced by code > written by somebody else, namely: > > > foo > function(x){ > z <- x/4 > while( abs(z*z*z-x) > 1e-10 ){ > z <- (2*z+x/z^2)/3 > } >

[Rd] Enlightenment sought and a possible buglet in vector.Rd

2005-12-02 Thread Berwin A Turlach
Dear all, First, I recently had reasons to read the help page of as.vector() and noticed in the example section the following example: x <- c(a = 1, b = 2) is.vector(x) as.vector(x) all.equal(x, as.vector(x)) ## FALSE However, in all versions of R in which I executed this exa