On 03/16/2015 05:05 PM, Saptarshi Guha wrote:
Example was complicated, but here is a simpler form
continueIfTrue <- function(mm=return()){
eval(mm)
}
telemStats <- function(){
y <- substitute(return())
continueIfTrue(y)
print("I would not like this message to be printed")
}
t
On 18/03/15 13:22, Bert Gunter wrote:
With all due respect:
I don't think much respect is due.
Fortune nomination!
cheers,
Rolf
--
Rolf Turner
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
Home phone: +64-9-480-4619
___
Perhaps read ?try
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Resear
With all due respect:
I don't think much respect is due. I doubt that the OP has made much of an
effort to learn R and is merely trying to slap on some prior CS class
concepts onto R. Ergo the confusion and nonsensical post.
http://www.jabberwocky.com/carroll/jabber/jabberwocky.html
seems relev
On 3/17/2015 10:01 AM, David Winsemius wrote:
On Mar 16, 2015, at 5:05 PM, Saptarshi Guha wrote:
Example was complicated, but here is a simpler form
continueIfTrue <- function(mm=return()){
eval(mm)
}
What are you trying to accomplish by passing `return()` to a formal parameter?
On Mar 16, 2015, at 5:05 PM, Saptarshi Guha wrote:
> Example was complicated, but here is a simpler form
>
> continueIfTrue <- function(mm=return()){
>eval(mm)
> }
What are you trying to accomplish by passing `return()` to a formal parameter?
> telemStats <- function(){
>y <- substitu
> On 16-03-2015, at 23:08, Saptarshi Guha wrote:
>
> Hello,
>
> I would like a function X to return to the place that called the
> function XParent that called this function X.
>
> Y calls XParent
> Y = function(){
> XParent()
> print("hello")
> }
>
> XParent calls X
>
> XParent = function
Example was complicated, but here is a simpler form
continueIfTrue <- function(mm=return()){
eval(mm)
}
telemStats <- function(){
y <- substitute(return())
continueIfTrue(y)
print("I would not like this message to be printed")
}
telemStats()
Ideally, calling telemStats() should r
On Mar 16, 2015, at 3:08 PM, Saptarshi Guha wrote:
> Hello,
>
> I would like a function X to return to the place that called the
> function XParent that called this function X.
>
> Y calls XParent
> Y = function(){
> XParent()
> print("hello")
> }
>
> XParent calls X
>
> XParent = function(
9 matches
Mail list logo