Description Usage Arguments Author(s) See Also Examples
In an mlocal
function, local.return
should be used whenever return
is called, wrapped inside the return
call around the return arguments.
1 2 | local.return(...) # Don't use it like this!
# Correct usage: return( local.return( ...))
|
... |
named and unnamed list, handled the same way as |
Mark Bravington
1 2 3 4 5 6 | ffin <- function( nlocal=sys.parent()) mlocal( return( local.return( a)))
ffout <- function( a) ffin()
ffout( 3) # 3
# whereas:
ffin <- function( nlocal=sys.parent()) mlocal( return( a))
ffout( 3) # NULL; "return" alone doesn't work
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.