RE: [R] Returning from a function

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Tue 24 May 2005 - 14:10:26 EST


Use invisible(NULL) as the last line.

Andy

> From: Laura Holt
>
> Hello again.
>
> I have a function that plots a series and adds some
> interesting items to the
> plot.
>
> Fair enough.
>
> The last statement in the function is
> return()
>
> When the function is executed, NULL appears at the end, which is ok.
> Is there any way to prevent NULL from appearing, or is that
> just as it
> should be, please?
>
> thanks again,
> Shamefacedly,
> Laura Holt
> R Version 2.1.0 Windows
> mailto: lauraholt_983@hotmail.com
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 24 14:15:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:01 EST