On 2 Jun 2008, at 15:18, Federico Abascal wrote:

Hi,
This is likely an stupid question, but I cannot find the solution.
I am searching for an "exit" function, to end the execution of an R
script if some condition is not filled.
Any clue?


f <- function() {
  ...
  if (1 == 1) return(WHATEVER)
  ...
  ...
  return(ONSUCCESS)
}

--Hans

______________________________________________
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