Re: [Rd] About removing zlib from R-devel

2015-03-30 Thread Prof Brian Ripley
On 31/03/2015 01:51, Kasper Daniel Hansen wrote: For people reading this: I was installing bzip2 by hand. Two things to bear in mind (1) it only installs a shared library if you use a special But R does not require a shared library for bzip2 Makefile (this is clearly stated in the insta

Re: [Rd] About removing zlib from R-devel

2015-03-30 Thread Kasper Daniel Hansen
For people reading this: I was installing bzip2 by hand. Two things to bear in mind (1) it only installs a shared library if you use a special Makefile (this is clearly stated in the installation docs) and (2) I had to symlink libbz2.so.1 to libbz2.so.1.0.6 (the included libbz2.so.1.0 was not bein

Re: [Rd] Segfault with match()

2015-03-30 Thread luke-tierney
The segfault was occurring in Rf_asCharacterFactor, which was using the levels attribute without sanity checks. Sanity checks are now added (r68119 in trunk and r68120. in R-3-2-branch), which now gives data(housing, package ="MASS") x <- housing$Type + housing$Sat Warning message: Incompatible

Re: [Rd] nested parallel workers

2015-03-30 Thread Valerie Obenchain
On 03/30/2015 02:51 PM, Simon Urbanek wrote: On Mar 30, 2015, at 4:40 PM, Valerie Obenchain wrote: On 03/25/2015 07:48 PM, Simon Urbanek wrote: On Mar 25, 2015, at 3:46 PM, Valerie Obenchain wrote: Hi Simon, I'm having trouble with nested parallel workers, specifically, forking inside s

Re: [Rd] nested parallel workers

2015-03-30 Thread Simon Urbanek
On Mar 30, 2015, at 4:40 PM, Valerie Obenchain wrote: > On 03/25/2015 07:48 PM, Simon Urbanek wrote: >> On Mar 25, 2015, at 3:46 PM, Valerie Obenchain >> wrote: >> >>> Hi Simon, >>> >>> I'm having trouble with nested parallel workers, specifically, forking >>> inside socket connections. >>>

Re: [Rd] Segfault with match()

2015-03-30 Thread Hadley Wickham
I left out the warning - it's still there. The output object is malformed but either +.factor should prevent this or match() should check. Hadley On Mon, Mar 30, 2015 at 3:50 PM, William Dunlap wrote: > Did you leave out the warning from "+", which should be an error, > as it produces an illegal

Re: [Rd] Segfault with match()

2015-03-30 Thread William Dunlap
For consistency with factor+factor and factor+numeric, factor+ordered should produce a logical vector filled with NAs, not throw an error. Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Mar 30, 2015 at 1:50 PM, William Dunlap wrote: > Did you leave out the warning from "+", which should b

Re: [Rd] Segfault with match()

2015-03-30 Thread William Dunlap
Did you leave out the warning from "+", which should be an error, as it produces an illegal ordered factor in this case and factor+factor is nonsensical? Or is the warning missing in the current development version of R? > x <- factor("A", ordered=FALSE) + factor(c("B","C"), ordered=TRUE) Warning

Re: [Rd] nested parallel workers

2015-03-30 Thread Valerie Obenchain
On 03/25/2015 07:48 PM, Simon Urbanek wrote: On Mar 25, 2015, at 3:46 PM, Valerie Obenchain wrote: Hi Simon, I'm having trouble with nested parallel workers, specifically, forking inside socket connections. You simply can't by definition - when you fork *all* the workers share the same c

[Rd] Segfault with match()

2015-03-30 Thread Hadley Wickham
This is admittedly a contrived example, but... data(housing, package ="MASS") x <- housing$Type + housing$Sat match(x, unique(x)) Hadley -- http://had.co.nz/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel