[Rd] Unstable reproduce for potential issue with CHARSXP creation

2012-02-19 Thread Patrick Aboyoun
I stumbled across one of those intermittent bugs where the code sometimes works and sometimes doesn't. Below is an example run showing a failure where a CHARSXP object was not properly created (by the sub function?). I was able to reproduce this error on three different R builds in fresh R ses

Re: [Rd] Unstable reproduce for potential issue with CHARSXP creation

2012-02-19 Thread Patrick Aboyoun
This issue was filed in R bugs and addresses by Prof Brian Ripley. I had neglected to name the data argument, but Brian checked in a fix to R-devel so folks who make the same mistake I did will know they supplied the wrong object type to the specials argument in the terms function. Cheers, Pat

Re: [Rd] portable parallel seeds project: request for critiques

2012-02-19 Thread Thomas Lumley
On Sat, Feb 18, 2012 at 4:33 PM, Paul Johnson wrote: > On Fri, Feb 17, 2012 at 5:06 PM, Petr Savicky wrote: >> On Fri, Feb 17, 2012 at 02:57:26PM -0600, Paul Johnson wrote: >> Hi. >> >> Some of the random number generators allow as a seed a vector, >> not only a single number. This can simplify g

[Rd] include

2012-02-19 Thread Paul Gilbert
I am trying to add #include to a .c file in one of my package, so I can call error() without a complaint about implicit defined function. The src/ has a Makefile, to build some exec/ files that are needed. Without the include, my Makefile target OBJS = $(SRC:.c=.o) $(PKGNAME).so: $(OBJS)

Re: [Rd] include

2012-02-19 Thread Dirk Eddelbuettel
On 19 February 2012 at 14:45, Paul Gilbert wrote: | I am trying to add | | #include | | to a .c file in one of my package, so I can call error() without a You may want to turn 'remapping' on which hides all R functions behind a prefix of Rf_ so that error() becomes Rf_error(). Define R_NO_RE

Re: [Rd] include

2012-02-19 Thread Paul Gilbert
On 12-02-19 02:59 PM, Dirk Eddelbuettel wrote: On 19 February 2012 at 14:45, Paul Gilbert wrote: | I am trying to add | | #include | | to a .c file in one of my package, so I can call error() without a You may want to turn 'remapping' on which hides all R functions behind a prefix of Rf_ so t

Re: [Rd] include

2012-02-19 Thread Dirk Eddelbuettel
On 19 February 2012 at 15:08, Paul Gilbert wrote: | | | On 12-02-19 02:59 PM, Dirk Eddelbuettel wrote: | > | > On 19 February 2012 at 14:45, Paul Gilbert wrote: | > | I am trying to add | > | | > | #include | > | | > | to a .c file in one of my package, so I can call error() without a | > | > Yo

Re: [Rd] include

2012-02-19 Thread Simon Urbanek
Paul, On Feb 19, 2012, at 2:45 PM, Paul Gilbert wrote: > I am trying to add > > #include > > to a .c file in one of my package, so I can call error() without a complaint > about implicit defined function. The src/ has a Makefile, to build some exec/ > files that are needed. Without the inclu

Re: [Rd] [R] semi-transparency not supported in devel R? "alpha" cannot be specified in qplot()

2012-02-19 Thread Tengfei Yin
Hi A little following up for this issue for google searchers. libcairo2-dev is not the problem, but as yihui suggested sudo apt-get build-dep r-base-dev did the trick for me, sorry that I didn't see the reply carefully enough, I miss the "build-dep" part and thought it was "install"... anyway, I

Re: [Rd] include

2012-02-19 Thread Paul Gilbert
On 12-02-19 04:56 PM, Simon Urbanek wrote: Paul, On Feb 19, 2012, at 2:45 PM, Paul Gilbert wrote: I am trying to add #include to a .c file in one of my package, so I can call error() without a complaint about implicit defined function. The src/ has a Makefile, to build some exec/ files t

Re: [Rd] include

2012-02-19 Thread Simon Urbanek
Paul, On Feb 19, 2012, at 9:32 PM, Paul Gilbert wrote: > On 12-02-19 04:56 PM, Simon Urbanek wrote: >> Paul, >> >> On Feb 19, 2012, at 2:45 PM, Paul Gilbert wrote: >> >>> I am trying to add >>> >>> #include >>> >>> to a .c file in one of my package, so I can call error() without a >>> compla