Hi,

I am using a script to initialize variables in the global workspace.

Based on some condition, I would like to stop evaluation of a script
sourced on the command-line, without issuing an error.

My current solution is the following hack that uses a repeat { }
statement

----------- init.R -----------
#hack to enable setting of breakpoint
repeat {

...
if (condition) {
    break;
}

...

# remember to break !!
break;
} #end repeat
EOF

Thanks,
- Stu

______________________________________________
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.

Reply via email to