Re: [Rd] checking user interrupts in C(++) code

2010-09-29 Thread Karl Forner
Hi, Thanks for your reply, There are several ways in which you can make your code respond to interrupts properly - which one is suitable depends on your application. Probably the most commonly used for interfacing foreign objects is to create an external pointer with a finalizer - that makes

Re: [Rd] checking user interrupts in C(++) code

2010-09-29 Thread Gábor Csárdi
Karl, I think you right, if you are not controlling all memory allocation, then you cannot do anything. In the igraph package, I keep a stack that contains all allocated objects, and also their destructor. In case of an error, or an interrupt, I go over the stack and call all destructors. (I use

[Rd] location of Rconfig.h when using architecture-dependent subdirs

2010-09-29 Thread Konis Kjell
Hello, I just tried configuring R to use architecture-dependent subdirs $ r_arch=x86_64 ./configure --prefix=/u/smat/konis/testdir on a Debain Squeeze box $ uname -a Linux smapc007 2.6.32-5-686 #1 SMP Sat Sep 18 02:14:45 UTC 2010 i686 GNU/Linux After building and installing, the

[Rd] Very slow plot rendering with X11 on CentOS 5.5

2010-09-29 Thread R P Herrold
On Tue, 28 Sep 2010, R P Herrold wrote: I am connecting from a PC to a Linux system running CentOS release 5.5 (Final) and it is extremely slow to render plots to the X11 device. f - function(n){ for(i in 1:n) qqnorm(rnorm(100)) } system.time(f(20)) I'll get a packaging built under

Re: [Rd] location of Rconfig.h when using architecture-dependent subdirs

2010-09-29 Thread Prof Brian Ripley
On Wed, 29 Sep 2010, Konis Kjell wrote: Hello, I just tried configuring R to use architecture-dependent subdirs $ r_arch=x86_64 ./configure --prefix=/u/smat/konis/testdir on a Debain Squeeze box $ uname -a Linux smapc007 2.6.32-5-686 #1 SMP Sat Sep 18 02:14:45 UTC 2010 i686 GNU/Linux

Re: [Rd] Very slow plot rendering with X11 on CentOS 5.5

2010-09-29 Thread Weigand, Stephen D.
Many, many thanks for the effort Russ. I'm not clear on next steps but think I need to look at CentOS vs. others in terms of X. -Original Message- From: R P Herrold [mailto:herr...@owlriver.com] Sent: Wednesday, September 29, 2010 8:40 AM On Tue, 28 Sep 2010, R P Herrold wrote: I am

Re: [Rd] location of Rconfig.h when using architecture-dependent subdirs

2010-09-29 Thread Konis Kjell
My problem arose while trying to build Graphviz with a swig binding for R. The wrapper includes R_ext/RS.h which contains #include Rconfig.h, then uses the pkg-config provided search path taken from libR.pc. Currently this is Cflags: -I${rincludedir} Could this be changed to match

Re: [Rd] location of Rconfig.h when using architecture-dependent subdirs

2010-09-29 Thread Prof Brian Ripley
On Wed, 29 Sep 2010, Konis Kjell wrote: My problem arose while trying to build Graphviz with a swig binding for R. The wrapper includes R_ext/RS.h which contains #include Rconfig.h, then uses the pkg-config provided search path taken from libR.pc. Currently this is Cflags: -I${rincludedir}

[Rd] License of R manuals

2010-09-29 Thread Hadley Wickham
Hi all, Under what license are the R manuals (R language definition etc) released? They are not mentioned explicitly in license() and have no license information in the individual documents. Does this mean that they are released under GPL-2? If so, what does that mean, given that they aren't

Re: [Rd] checking user interrupts in C(++) code

2010-09-29 Thread Berwin A Turlach
G'day Simon, since Karl brought up this topic, I thought I might use it to seek clarification for something that bothered me for some time. On Tue, 28 Sep 2010 14:55:34 -0400 Simon Urbanek simon.urba...@r-project.org wrote: There are several ways in which you can make your code respond to

Re: [Rd] License of R manuals

2010-09-29 Thread Peter Dalgaard
On Sep 29, 2010, at 17:05 , Hadley Wickham wrote: Hi all, Under what license are the R manuals (R language definition etc) released? They are not mentioned explicitly in license() and have no license information in the individual documents. Does this mean that they are released under

Re: [Rd] checking user interrupts in C(++) code

2010-09-29 Thread Simon Urbanek
On Sep 29, 2010, at 11:34 AM, Berwin A Turlach wrote: G'day Simon, since Karl brought up this topic, I thought I might use it to seek clarification for something that bothered me for some time. On Tue, 28 Sep 2010 14:55:34 -0400 Simon Urbanek simon.urba...@r-project.org wrote: There

Re: [Rd] License of R manuals

2010-09-29 Thread Hadley Wickham
Hmm, well... I have always understood it so that: (a) yes, it's GPL-2 (what else could it be) and (b) it means that the restrictions of GPL apply insofar as they make sense, e.g., you can pick it apart and reuse it in other GPL-2 or compatible products, but not take it proprietary. Upon

Re: [Rd] Very slow plot rendering with X11 on CentOS 5.5

2010-09-29 Thread R P Herrold
On Wed, 29 Sep 2010, Weigand, Stephen D. wrote: Many, many thanks for the effort Russ. I'm not clear on next steps but think I need to look at CentOS vs. others in terms of X. I suspect all X will be similar within an order of magnitude, but dunno -- I did not 'tune' the workstation I tested

Re: [Rd] checking user interrupts in C(++) code

2010-09-29 Thread Simon Urbanek
On Sep 29, 2010, at 4:31 AM, Karl Forner wrote: Hi, Thanks for your reply, There are several ways in which you can make your code respond to interrupts properly - which one is suitable depends on your application. Probably the most commonly used for interfacing foreign objects is to

Re: [Rd] More strange R CMD build/check errors on Windows

2010-09-29 Thread Hervé Pagès
Hi, I can confirm that most of those strange R CMD build/check errors we observe on Windows are actually a consequence of the temp Rscript file collision I reported yesterday here: https://stat.ethz.ch/pipermail/r-devel/2010-September/058648.html I just applied the following patch to the R

Re: [Rd] small inaccuracy in startup warning message

2010-09-29 Thread Hervé Pagès
It looks like this has been fixed in current R-alpha. Thanks! H. On 09/28/2010 04:27 PM, Hervé Pagès wrote: Hi, Cosmetic. Starting R with e.g. --max-ppsize=-10 produces the following warning: WARNING: '-max-ppsize' value is negative: ignored The name of the option displayed in the warning

[Rd] History of seq and seq.int

2010-09-29 Thread Radford Neal
I wonder what is the history of seq and seq.int? From help(seq), one reads that 'seq.int' is an internal generic which can be much faster but has a few restrictions. And indeed, seq.int(1,99,by=2) is over 40 times faster than seq(1,99,by=2) in a quick test I just did. This is not surprising