Hi Pat, On 8 August 2009 at 19:58, Patrick Burns wrote: | 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")
The "yes" or "no" is about saving the workspace image when quitting, not whether the program is to die or not. I don't like to clutter my workspaces with files, so I personally prefer "no" as a default, and interpreted the OP's request to something that "just finishes the program" in this light. "Just finish", ie do not save. Dirk -- Three out of two people have difficulties with fractions. ______________________________________________ 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.