[Rd] Encourage exit with nonzero error status in ?last.dump

2014-06-12 Thread Scott Kostyshak
The following example in ?dump.frames options(error = quote({dump.frames(to.file = TRUE); q()})) is useful for teaching the user how to save a frame dump when R encounters an error during non-interactive sessions. This command however causes an additional change that on encountering an error R ex

Re: [Rd] do.call Error for Function Not Present When Manually Called

2014-06-12 Thread Dario Strbenac
I had a look at the source code, and your prediction is right. There is line at the beginning of the naiveBayes function : Yname <- deparse(substitute(y)) When I manually edited it to list(quote(y)), it works. __ R-devel@r-project.org mailing list

Re: [Rd] regression bug with getParseData and/or parse in R-3.1.0

2014-06-12 Thread Karl Forner
Thank you Duncan. I confirm: R version 3.1.0 Patched (2014-06-11 r65921) -- "Spring Dance" > getParseData(parse(text = "{1}", keep.source = TRUE)) line1 col1 line2 col2 id parent token terminal text 7 11 13 7 0 exprFALSE 1 11 11 1 7

Re: [Rd] regression bug with getParseData and/or parse in R-3.1.0

2014-06-12 Thread Duncan Murdoch
On 12/06/2014, 7:37 AM, Karl Forner wrote: > Hi, > > With R-3.1.0 I get: >> getParseData(parse(text = "{1}", keep.source = TRUE)) > line1 col1 line2 col2 id parent token terminal text > 7 11 13 7 9 exprFALSE > 1 11 11 1 7 '{' TRU

[Rd] regression bug with getParseData and/or parse in R-3.1.0

2014-06-12 Thread Karl Forner
Hi, With R-3.1.0 I get: > getParseData(parse(text = "{1}", keep.source = TRUE)) line1 col1 line2 col2 id parent token terminal text 7 11 13 7 9 exprFALSE 1 11 11 1 7 '{' TRUE{ 2 12 12 2 3 NUM_CONST T

Re: [Rd] do.call Error for Function Not Present When Manually Called

2014-06-12 Thread peter dalgaard
On 12 Jun 2014, at 09:00 , Dario Strbenac wrote: > Hello, > > The e1071 function naiveBayes gives an error when called by do.call, although > it doesn't give any error if I call it manually. > > Browse[1]> trainParams@classifier > function (x, ...) > UseMethod("naiveBayes") > > Browse[1]> t

[Rd] do.call Error for Function Not Present When Manually Called

2014-06-12 Thread Dario Strbenac
Hello, The e1071 function naiveBayes gives an error when called by do.call, although it doesn't give any error if I call it manually. Browse[1]> trainParams@classifier function (x, ...) UseMethod("naiveBayes") Browse[1]> trained <- do.call(trainParams@classifier, paramList) Error in names(dimn