[R] dienice for R

Dirk Eddelbuettel edd at debian.org
Sat Aug 8 21:32:08 CEST 2009


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.




More information about the R-help mailing list