Oops sorry. Thanks BARRY!

On Tue, Jun 30, 2009 at 12:14 PM, Mark Knecht<markkne...@gmail.com> wrote:
> On Tue, Jun 30, 2009 at 12:12 PM, Barry
> Rowlingson<b.rowling...@lancaster.ac.uk> wrote:
>> On Tue, Jun 30, 2009 at 8:05 PM, Mark Knecht<markkne...@gmail.com> wrote:
>>
>>> You could wrap it in a function of your own making, right?
>>>
>>> AddNewDev = function() {dev.new();AddNewDev=dev.cur()}
>>>
>>> histPlot=AddNewDev()
>>>
>>> Seems to work.
>>
>>  You leaRn fast :) Probably better style is:
>>
>>  newDev = function(){dev.new();return(dev.cur())}
>>
>>  - which returns the value explicitly with return().
>>
>> Barry
>>
>
> Thanks Ted. I've missed this return function. I'll start using that.
>
> Cheers,
> Mark
>

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to