Dirk Eddelbuettel wrote:
On 8 August 2009 at 09:12, ferreirafm wrote:
| hi,
| Does anybody know if there is a dienice python equivalent command in R??
| The python dienice command just finishes the program when issued.
| I want do something like: if (test) fails so dienice.
Try
dienice <- function() q("no")
I think there is some fraction of the population
that would think the above function would be
'dieNOTnice' and would have:
dienice <- function() q("yes")
Patrick Burns
patr...@burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of "The R Inferno" and "A Guide for the Unwilling S User")
along with
if ( ! someTestResult ) dienice()
and see how it goes.
Dirk
______________________________________________
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.