Thank everybody for the answers! The stop and quit functions are what I
need (it is a script, not a function what needs to be terminated. I was
talking about an exit function, what can be confusing).
Best,
Federico
Gregory. R. Warnes wrote:
Since Frederico indeicated he was running a script,
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@r-project.org mailing
on 06/02/2008 08:18 AM Federico Abascal wrote:
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
See ?stop and ?stopifnot
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!
On 2 Jun 2008, at 15:18, Federico Abascal wrote:
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?
f - function() {
...
if (1 == 1) return(WHATEVER)
On 3/06/2008, at 1:18 AM, Federico Abascal wrote:
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?
Others have suggested using stop(). It might be the
6 matches
Mail list logo