An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120906/2b45a7f7/attachment.pl>
Help! Weird behavioral difference between R interactive and command-line?
3 messages · Michael, R. Michael Weylandt, MacQueen, Don
On Thu, Sep 6, 2012 at 7:22 PM, Michael <comtech.usa at gmail.com> wrote:
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?
I've given you my standard links about reproducibility before so I won't repost them here (I'm also on someone else's computer after a recent move), but does this even begin to look like a reproducible example? Michael Weylandt
Thanks a lot!
[[alternative HTML version deleted]]
______________________________________________ R-help at 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.
3 days later
You will have to **show** what you did; it isn't sufficient to **describe** what you did. The problem could be that somewhere in your program there is something that only works in an interactive session. The problem could be that your "command-line" attempt is using a different working directory than your interactive session. You could insert some sort of print() statements in your program to try to find out how far it runs before it halts, which might give you a clue as to what the problem is.
Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 9/6/12 11:22 AM, "Michael" <comtech.usa at gmail.com> wrote: >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]] > >______________________________________________ >R-help at 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.