Re: [Rd] surprising behaviour of names<-

2009-03-13 Thread Berwin A Turlach
On Fri, 13 Mar 2009 19:41:42 +0100 Wacek Kusnierczyk wrote: > > Glad to see that we agree on this. > > > > owe you a beer. O.k., if we ever meet is is first your shout and then mine. > >> haven't objected to that. i object to your 'r uses pass by value', > >> which is only partially corre

Re: [Rd] surprising behaviour of names<-

2009-03-14 Thread Berwin A Turlach
On Sat, 14 Mar 2009 07:22:34 +0100 Wacek Kusnierczyk wrote: [...] > > Well, I don't see any new object created in my workspace after > > x <- 4 > > names(x) <- "foo" > > Do you? > > > > of course not. that's why i'd say the two above are *not* > equivalent. > > i haven't noticed th

Re: [Rd] surprising behaviour of names<-

2009-03-15 Thread Berwin A Turlach
G'day Wacek, On Sun, 15 Mar 2009 21:01:33 +0100 Wacek Kusnierczyk wrote: > Berwin A Turlach wrote: > > > > Obviously, assuming that R really executes > > *tmp* <- x > > x <- "names<-"('*tmp*', value=c("a",&qu

[Rd] Patch proposal for logspace_sub

2009-04-27 Thread Berwin A Turlach
"#include " R> fn <- cfunction(sig,code,convention=".C",language="C",includes=incl) R> lx <- 1e-16 R> ly <- 1e-20 R> fn(lx, ly, res=0)$res [1] -36.7368005696771 === Full address = Berwin A Turlach

[Rd] Question on help system under windows

2006-02-09 Thread Berwin A Turlach
G'day all, I spend today sometime playing around with R under Windows since our lecturing starts in 2 weeks again and our IT guys want to know which version to put onto our lab machines. I noticed the following: Under R-2.2.1, I obtain the following output: > R.home() [1] "C:\\PROGRA

Re: [Rd] simple C function segfaults

2006-02-20 Thread Berwin A Turlach
> "BK" == Bernd Kriegstein <[EMAIL PROTECTED]> writes: BK> void pico ( double *y, int n, int m ) ^ Everything is passed from R to C as pointer, so these should be pointers. Hope this helps. Cheers, Berwin __

Re: [Rd] Links to non-vignette documentation

2006-02-23 Thread Berwin A Turlach
- Source of dummy vignette - \documentclass[a4paper]{article} %\VignetteIndexEntry{Interface '96 paper by Marron et al. (1997)} %\VignettePackage{clps} \usepackage{hyperref} \usepackage{natbib} \title{Interface '96 paper by \cite{mar:tur:wan:96}}

Re: [Rd] Links to non-vignette documentation

2006-02-24 Thread Berwin A Turlach
G'day all, > "DM" == Duncan Murdoch <[EMAIL PROTECTED]> writes: DM> On 2/24/2006 7:27 AM, Romain Francois wrote: >> >> What about using the latex package pdfpages to copy the pages from your >> PDF file `interface96.pdf` to your Sweave file. Merci beaucoup, I wasn't aware t

Re: [Rd] Links to non-vignette documentation

2006-02-25 Thread Berwin A Turlach
G'day all, > "HW" == hadley wickham <[EMAIL PROTECTED]> writes: >> There aren't any immediate plans to change help(package=XXX), but I >> think in the long run, if package?XXX receives wider support than it has >> now, it would make sense to make that change. HW> When was this

Re: [Rd] Internal codes of the factor

2006-03-14 Thread Berwin A Turlach
;-th element of the result is 'j'". This pretty much documents that the internal codes are 1:n and 'NA', as documented in the following sentence. Cheers, Berwin == Full address Berwin A Turlach

[Rd] Suggest patch for princomp.formula and prcomp.formula

2006-03-25 Thread Berwin A Turlach
Dear all, perhaps I am using princomp.formula and prcomp.formula in a way that is not documented to work, but then the documentation just says: formula: a formula with no response variable. Thus, to avoid a lot of typing, it would be nice if one could use '.' and '-' in the formula, e.g.

Re: [Rd] Suggest patch for princomp.formula and prcomp.formula

2006-03-27 Thread Berwin A Turlach
G'day Brian, > "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> writes: BDR> The proposed fix regretably will not work, since one can do BDR> things like BDR> library(MASS) BDR> prcomp(~ dist + dist:climb, hills) Yes, I had the impression that this would work with the current v

Re: [Rd] bounding box in PostScript

2006-04-17 Thread Berwin A Turlach
Berwin == Full address Berwin A Turlach Tel.: +61 (8) 6488 3338 (secr) School of Mathematics and Statistics+61 (8) 6488 3383 (self) The University of Western Australia FAX : +61 (8) 6488 1028 35 Stirling

[Rd] Question about match.fun()

2006-05-09 Thread Berwin A Turlach
Dear all, I was recently contacted by a user about an alledged problem/bug in the latest version of lasso2. After some investigation, we found out that it was a user error which boils down to the following: > x <- matrix(rnorm(200), ncol=2) > var <- "fred" > apply(x, 2, var) Error in get(x, envi

[Rd] Patch proposal for match.fun()

2006-05-27 Thread Berwin A Turlach
G'day all, some time ago I sent an email regarding the following behaviour of match.fun(): > x <- matrix(rnorm(200), ncol=2) > var <- "fred" > apply(x, 2, var) Error in get(x, envir, mode, inherits) : variable "fred" of mode "function" was not found and asked whether it would be desirable to ch

Re: [Rd] Numerical error in R (win32) (PR#8909)

2006-05-30 Thread Berwin A Turlach
ld probably do the same thing as I did yesterday and hit the delete button and go home instead of hitting the sent button. But this time I won't. If anybody feels offended, my apologies. Cheers, Berwin == Full address Berwin A Turlach

Re: [Rd] "stem" does not give a correct answer (PR#9359)

2006-11-12 Thread Berwin A Turlach
| 18 5 | 1 6 | 7 | 044 Cheers, Berwin == Full address Berwin A Turlach Tel.: +61 (8) 6488 3338 (secr) School of Mathematics and Statistics+61 (8) 6488 3383 (self) The University of Western Aus

[Rd] Development version of R fails a regression test

2025-01-20 Thread Berwin A Turlach
G'day all, I have daily scripts running to install the patched version of the current R version and the development version of R on my linux box (Ubuntu 24.04.1 LTS). The last development version that was successfully compiled and installed on my machine is "R Under development (unstable) (2024-1

<    1   2