[R] exit function in R?

Markus Schmidberger schmidb at ibe.med.uni-muenchen.de
Mon Jun 2 15:23:23 CEST 2008


try this:

stop("Message")
warning("Message")

Best
Markus

Federico Abascal schrieb:
> 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?
>
> Thank you in advance!
> Federico
>
> ______________________________________________
> R-help at 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.
>   


-- 
Dipl.-Tech. Math. Markus Schmidberger

Ludwig-Maximilians-Universität München
IBE - Institut für medizinische Informationsverarbeitung,
Biometrie und Epidemiologie
Marchioninistr. 15, D-81377 Muenchen
URL: http://ibe.web.med.uni-muenchen.de 
Mail: Markus.Schmidberger [at] ibe.med.uni-muenchen.de
Tel: +49 (089) 7095 - 4599



More information about the R-help mailing list