[Rd] CRAN: MacOS X binary: not available, see check log?

2010-04-14 Thread Henrik Bengtsson
For a couple of days, MacOS X binaries are not build on CRAN (for my recently uploaded packages only?): The R.oo package is listed as "MacOS X binary: not available, see check log?", but the 'check log' show no errors URL: http://cran.r-project.org/web/packages/R.oo/ Is this a known issue? /Henr

Re: [Rd] Why no race condition when returning UNPROTECT-ed memory fromC?

2010-04-14 Thread Sklyar, Oleg (London)
Because there is no second thread to do that, R is single threaded. The gc could only be run from within another R API command or macro, but there is none in between. Best Oleg Dr Oleg Sklyar Research Technologist AHL / Man Investments Ltd +44 (0)20 7144 3803 oskl...@maninvestments.com > -O

Re: [Rd] Why no race condition when returning UNPROTECT-ed memory from C?

2010-04-14 Thread peter dalgaard
On Apr 14, 2010, at 7:50 AM, Dominick Samperi wrote: > Consider the C (or C++) code called from the .Call interface: > SEXP foo() { > SEXP *p = PROTECT(allocVector(REALSXP, 10)); > ... > UNPROTECT(1); > return p; > } > > Why is there no danger that the allocated memory will be garbage > coll