[Rd] VTK

2006-04-24 Thread George Ostrouchov
Has anyone developed an R interface to VTK? We are looking into marrying some R graphics with a scientific visualization package VisIt that is based on VTK. I found some references to VTK on this list back in 2001 and 2002 suggesting an R-VTK interface would be easy. I will be grateful for any

Re: [Rd] gsub + backslashes

2006-04-24 Thread Bill Dunlap
On Mon, 24 Apr 2006, Prof Brian Ripley wrote: > On Mon, 24 Apr 2006, Torsten Hothorn wrote: > > > > > Dear developeRs, > > > > I thought that backslashes can be escaped in the usual way (and I think I > > did this before) but I can't see why > > > > R> gsub("\\", "x", "\alpha") > > Error in gsub(p

Re: [Rd] gsub + backslashes

2006-04-24 Thread Prof Brian Ripley
On Mon, 24 Apr 2006, Torsten Hothorn wrote: > > Dear developeRs, > > I thought that backslashes can be escaped in the usual way (and I think I > did this before) but I can't see why > > R> gsub("\\", "x", "\alpha") > Error in gsub(pattern, replacement, x, ignore.case, extended, fixed, > useBytes)

Re: [Rd] gsub + backslashes

2006-04-24 Thread Gabor Grothendieck
\ is a special character in regular expressions so you need to escape it as \\ but putting \\ between quotes give you only \ so you need to get \\. Any of these would work: gsub("", "x", "\\alpha") gsub("[\\]", "x", "\\alpha") sub(".", "x", "\\alpha") # assumes \ is first character gsub(

Re: [Rd] gsub + backslashes

2006-04-24 Thread Simon Urbanek
On Apr 24, 2006, at 10:23 AM, Torsten Hothorn wrote: > > Dear developeRs, > > I thought that backslashes can be escaped in the usual way (and I > think I > did this before) but I can't see why > > R> gsub("\\", "x", "\alpha") > Error in gsub(pattern, replacement, x, ignore.case, extended, fixed

[Rd] gsub + backslashes

2006-04-24 Thread Torsten Hothorn
Dear developeRs, I thought that backslashes can be escaped in the usual way (and I think I did this before) but I can't see why R> gsub("\\", "x", "\alpha") Error in gsub(pattern, replacement, x, ignore.case, extended, fixed, useBytes) : invalid regular expression '\' gives an error.

Re: [Rd] undefined type 'struct tms' when compiling for MinGW

2006-04-24 Thread Mike Leahy
Ok, that was it. After taking Msys out of the equation, and removing some extra folders at the start of my PATH that weren't supposed to be there, the whole thing compiled perfectly. Thanks again for your help. Mike Prof Brian Ripley wrote: > I think you are somehow running in MSYS (also not pa

[Rd] Looking for Jeff Banfield

2006-04-24 Thread Kurt Hornik
Email to Jeff Banfield, the creator of RWeb, seem to bounce with - The following addresses had permanent fatal errors - <[EMAIL PROTECTED]> (reason: 550 5.1.1 <[EMAIL PROTECTED]>... User unknown) Does anyone know how to reach Jeff? Thanks -k __

Re: [Rd] undefined type 'struct tms' when compiling for MinGW

2006-04-24 Thread Prof Brian Ripley
I think you are somehow running in MSYS (also not part of the instructions) and so have a different Perl earlier in your path. There's a comment in those instructions about This section contains a lot of prescriptive comments. They are here as a result of bitter experience. and

Re: [Rd] unsigned long long integers

2006-04-24 Thread Prof Brian Ripley
R-admin recommends -std=gnu99, which will solve this. Given that long and long long mean different things on different platforms, I would endorse the recommendation to use a C99 explicit type. On Mon, 24 Apr 2006, Robin Hankin wrote: > Hi. > > R-exts, section 1.7, discusses the passing of long

[Rd] unsigned long long integers

2006-04-24 Thread Robin Hankin
Hi. R-exts, section 1.7, discusses the passing of long long integers between R and C. I want to use unsigned long long integers, but I only need them inside a C function. I have a function that maps the nonnegative integers to the positive integers. The function is defined by a delicate recu

Re: [Rd] undefined type 'struct tms' when compiling for MinGW

2006-04-24 Thread Mike Leahy
Prof Brian Ripley wrote: > On Mon, 24 Apr 2006, Mike Leahy wrote: > >> Hello list, >> >> Out of interest, I've been trying to compile R on WinXP with MinGW/MSYS. >> I've been following the instructions for compiling R on windows as >> closely as possible. Below is my configure statement, which s

Re: [Rd] transform argument on 2.3 rc 2006-04-20

2006-04-24 Thread ernesto
Kurt Hornik wrote: >>ernesto writes: >> >> > > > >>Hi, >> >> > > > >>I'm adjusting package FLCore to the new R version and I got an error >>due to the change of the transform function argument "x" to >>"_data". Was this intentional ? >> >> > >You mean that you

Re: [Rd] transform argument on 2.3 rc 2006-04-20

2006-04-24 Thread Kurt Hornik
> ernesto writes: > Hi, > I'm adjusting package FLCore to the new R version and I got an error > due to the change of the transform function argument "x" to > "_data". Was this intentional ? You mean that you get the error? :-) See NEWS: o The data frame argument to transform() is n

[Rd] transform argument on 2.3 rc 2006-04-20

2006-04-24 Thread ernesto
Hi, I'm adjusting package FLCore to the new R version and I got an error due to the change of the transform function argument "x" to "_data". Was this intentional ? Regards EJ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [Rd] undefined type 'struct tms' when compiling for MinGW

2006-04-24 Thread Prof Brian Ripley
On Mon, 24 Apr 2006, Mike Leahy wrote: > Hello list, > > Out of interest, I've been trying to compile R on WinXP with MinGW/MSYS. > I've been following the instructions for compiling R on windows as > closely as possible. Below is my configure statement, which seems to > work okay except that no