Michael
2012-Sep-06 18:22 UTC
[R] Help! Weird behavioral difference between R interactive and command-line?
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. Michael Weylandt
2012-Sep-07 14:59 UTC
[R] Help! Weird behavioral difference between R interactive and command-line?
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.
MacQueen, Don
2012-Sep-10 17:39 UTC
[R] Help! Weird behavioral difference between R interactive and command-line?
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.
Frank Schwidom
2013-Apr-07 09:40 UTC
[R] Help! Weird behavioral difference between R interactive and command-line?
Hi some functions, like plot, readline and others behave different depending to the result of the function interactive() there is no way to ask R which functions do that On Thu, Sep 06, 2012 at 01:22:32PM -0500, Michael 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.