Re: [R] Determining whether a function's return value is assigned

2007-07-02 Thread Thomas Lumley
On Sat, 30 Jun 2007, Paul Laub wrote: Dear all, Does R offer a means by which a function can determine whether its return value is assigned? I am using R 2.4.1 for Windows. No Suppose what I am looking for is called return.value.assigned. Then one might use it like this myfunction

[R] Determining whether a function's return value is assigned

2007-06-30 Thread Paul Laub
Dear all, Does R offer a means by which a function can determine whether its return value is assigned? I am using R 2.4.1 for Windows. Suppose what I am looking for is called return.value.assigned. Then one might use it like this myfunction - function () { # Create bigobject here

Re: [R] Determining whether a function's return value is assigned

2007-06-30 Thread Uwe Ligges
Paul Laub wrote: Dear all, Does R offer a means by which a function can determine whether its return value is assigned? I am using R 2.4.1 for Windows. Short answer: No. Long answer: You want to have a class for the object called bigobject below and a print/show method that provides the