[Rd] 2 questions about signal broken connection in R

2013-08-14 Thread Rong lI Li
Hi, all, I have 2 questions about signal handling in R. Would you pls help give me some suggestions? Many thanks! [How to block the signal in one R function]: If one R function hopes to be running without interrupting, how can we avoid this? To be more specific, for one R function func1, it

[Rd] readChar and blocking connections

2013-08-14 Thread Thomas Lumley
If readChar() reads from a connection and the specified number of bytes are not all available, it returns with what it can find. That's as documented (further down the help page) and it's what the low-level recv() does. However, for a blocking connection, wouldn't it be more natural to retry

[Rd] Inconsistency between eval and withVisible (with patch)

2013-08-14 Thread Gabriel Becker
R-team, The $value element of the return value of *withVisible* does not agree with the return value of *eval* when *withVisible* is passed a variable (symbol) containing an expression object or anonymous code/expressions which generates an expression object when evaluated (such as calls to

[Rd] local variable assignment: first copies from higher frame?

2013-08-14 Thread Murat Tasan
hi all -- this might not be the correct list for this question/discussion, though R-help didn't seem like the correct venue, either, so... i'm looking for just some extra clarification of how local variables are defined/bound, beyond the simple cases given in the Language document. the

Re: [Rd] local variable assignment: first copies from higher frame?

2013-08-14 Thread Peter Meilstrup
Not anything that complicated -- your answer is in the R language definition under 'Subset assignment' and the part in Function calls that describes assignment functions. Whenever a call is found on the left side of a `-`, it is munged by sticking a - on the function name and pulling out the