Help! Weird behavioral difference between R interactive and command-line?

Hi all,

This weird problem has been bugging me for a while.

If I run the R program in an interactive session, it worked;

But if I run the R program on command-line, it stopped with no reason: with
"Execution halted" message and without any specific error messages.

What could be the problem?

Thanks a lot!

	[[alternative HTML version deleted]]

