Message-ID: <1402628487771.40117@uni.sydney.edu.au>
Date: 2014-06-13T02:00:12Z
From: Dario Strbenac
Subject: do.call Error for Function Not Present When Manually Called
In-Reply-To: <99F20586-A63E-49C6-8972-049D2F166BBD@gmail.com>
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.