search for: nicestop

Displaying 2 results from an estimated 2 matches for "nicestop".

Did you mean: mic_stop
2006 Mar 14
1
Can example() code stop the example without generating an error?
Hi, does anyone know if it is possible to write example code (in Rd examples) such that one can stop the example without generating an error? Example: code A if (cond) niceStop() code B I know this sounds weird, but I would like some of my Rd examples to run if and only if another package is available or if a certain large Affymetrix data file is available. One can put all of the example in a function and return from the function if the package is not available, but the...
2006 Mar 14
1
New simpleExit() condition (Was: Re: Can example() code stop the example without generating an error?)
...ote: > Henrik Bengtsson wrote: > > > Hi, > > > > does anyone know if it is possible to write example code (in Rd > > examples) such that one can stop the example without generating an > > error? Example: > > > > code A > > if (cond) > > niceStop() > > code B > > > What about > > code A > if(cond){ > code B > } > > But maybe I do not get your point. The purpose is to keep the code clean and I want to avoid nested if statements. Further conditions down the stream would make the code quite ugly. Prett...