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