Re: [Rd] invalid regular expression '[a-Z]'

2008-03-05 Thread Prof Brian Ripley
On Wed, 5 Mar 2008, Henrik Bengtsson wrote: > On Wed, Mar 5, 2008 at 6:18 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: >> On 05/03/2008 8:56 PM, Henrik Bengtsson wrote: >> > Hi, >> > >> > just curious, but does anyone know the source/reason of observing the >> > following error on OSX but not on

Re: [Rd] invalid regular expression '[a-Z]'

2008-03-05 Thread Henrik Bengtsson
On Wed, Mar 5, 2008 at 6:40 PM, Henrik Bengtsson <[EMAIL PROTECTED]> wrote: > On Wed, Mar 5, 2008 at 6:18 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > > On 05/03/2008 8:56 PM, Henrik Bengtsson wrote: > > > Hi, > > > > > > just curious, but does anyone know the source/reason of observing t

Re: [Rd] invalid regular expression '[a-Z]'

2008-03-05 Thread Henrik Bengtsson
On Wed, Mar 5, 2008 at 6:18 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 05/03/2008 8:56 PM, Henrik Bengtsson wrote: > > Hi, > > > > just curious, but does anyone know the source/reason of observing the > > following error on OSX but not on WinXP and Linux? > > Presumably in the locale y

Re: [Rd] embedFonts() side-effect under 2.6.2 ?

2008-03-05 Thread Dirk Eddelbuettel
On 5 March 2008 at 17:26, Dirk Eddelbuettel wrote: | | I received the following as a Debain bug report (cf | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469560) | |To reproduce: | |1) Run the following commands: | |filename <- 'test.pdf' |pdf(filename) |plot(1:10) |

Re: [Rd] invalid regular expression '[a-Z]'

2008-03-05 Thread Duncan Murdoch
On 05/03/2008 8:56 PM, Henrik Bengtsson wrote: > Hi, > > just curious, but does anyone know the source/reason of observing the > following error on OSX but not on WinXP and Linux? Presumably in the locale you're using on OSX, "a" < "Z" is false. This is the ascii sort order used in the C local

[Rd] invalid regular expression '[a-Z]'

2008-03-05 Thread Henrik Bengtsson
Hi, just curious, but does anyone know the source/reason of observing the following error on OSX but not on WinXP and Linux? I've tried with a few different versions of R (v2.5.1, v2.6.1, v2.6.2, v2.7.0devel). The locale does not seem to affect the error, i.e. I've tested a few different and it i

[Rd] embedFonts() side-effect under 2.6.2 ?

2008-03-05 Thread Dirk Eddelbuettel
I received the following as a Debain bug report (cf http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469560) To reproduce: 1) Run the following commands: filename <- 'test.pdf' pdf(filename) plot(1:10) dev.off() 2) Open test.pdf (I use Evince, but the same with Adobe A

Re: [Rd] SEXP size management.

2008-03-05 Thread Charles Danko
Hi, Oleg, Thanks very much for your answer! I was indeed confused; thinking that Realloc was intended to be an analog to realloc (except for SEXP variables). Is there a way to do either of the following: -- resize the SEXP directly (for my purpose, I ONLY need to decrease the size), or -- assign

Re: [Rd] SEXP size management.

2008-03-05 Thread Oleg Sklyar
Charles Danko wrote: > Hi, Oleg, > > Thanks very much for your answer! I was indeed confused; thinking > that Realloc was intended to be an analog to realloc (except for SEXP > variables). > > Is there a way to do either of the following: > -- resize the SEXP directly (for my purpose, I ONLY n

Re: [Rd] SEXP size management.

2008-03-05 Thread Oleg Sklyar
Rblah in your example is a SEXP structure. Realloc is an interface to C realloc and is not intended to resize SEXP structures -- it is used to resize user-controlled memory (which is generally not created by allocVector/INTEGER). You would expect a call like: int * val; ... Realloc(val, 20, in

[Rd] SEXP size management.

2008-03-05 Thread Charles Danko
Hi, Trying to decrease the size of a SEXP variable without reassigning values individually in a loop. So far, I've tried using Realloc, as the follow source demonstrates: SEXP dothis() { SEXP Rblah; PROTECT(Rblah = NEW_INTEGER(6)); int* blah = INTEGER(Rblah); blah

Re: [Rd] Problems in builtin editor -- memory leak? graphics plugin? (PR#10887)

2008-03-05 Thread Simon Urbanek
Timothy, those are problems in 3rd partly haxxies you are using (see R for Mac FAQ). You should remove them and/or get a fixed version. Please read the posting guide and do not fill R bug reports on broken 3rd party software. Thanks, Simon On Mar 4, 2008, at 6:41 PM, [EMAIL PROTECTED] wrot

Re: [Rd] A patch

2008-03-05 Thread Berwin A Turlach
On Wed, 5 Mar 2008 21:02:34 +0800 Berwin A Turlach <[EMAIL PROTECTED]> wrote: > since a day or two "make dvi" and "make pdf" fails on my machine when > I try to install the latest version of R from scratch. The attached > patch seems to solve this problem. Sorry, forgot to change the attachment

[Rd] A patch

2008-03-05 Thread Berwin A Turlach
Dear all, since a day or two "make dvi" and "make pdf" fails on my machine when I try to install the latest version of R from scratch. The attached patch seems to solve this problem. Cheers, Berwin === Full address = Berwin A Turlach

[Rd] Problems in builtin editor -- memory leak? graphics plugin? (PR#10887)

2008-03-05 Thread tw
Full_Name: Timothy Wyant Version: R 2.6.0 GUI 1.21 (4815) (4815) OS: mac osx 10.4.11 Submission from: (NULL) (64.202.127.110) Intermittently when in an interactive R session I get the following, or similar: > 2008-03-04 18:19:18.807 R[1103] CFLog (21): dyld returns 2 when trying to load /Use

Re: [Rd] patch for random.c

2008-03-05 Thread Berwin A Turlach
G'day Martin, On Mon, 3 Mar 2008 10:16:45 +0100 Martin Maechler <[EMAIL PROTECTED]> wrote: > > "BAT" == Berwin A Turlach <[EMAIL PROTECTED]> > > on Fri, 29 Feb 2008 18:19:40 +0800 writes: > > BAT> while looking for some inspiration of how to organise some > BAT> code, I studie