From dstr7320 at uni.sydney.edu.au  Fri Jun 13 04:00:12 2014
From: dstr7320 at uni.sydney.edu.au (Dario Strbenac)
Date: Fri, 13 Jun 2014 02:00:12 +0000
Subject: [Rd] do.call Error for Function Not Present When Manually Called
In-Reply-To: <99F20586-A63E-49C6-8972-049D2F166BBD@gmail.com>
References: <1402560086387.53754@uni.sydney.edu.au>,
	<99F20586-A63E-49C6-8972-049D2F166BBD@gmail.com>
Message-ID: <1402628487771.40117@uni.sydney.edu.au>

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.


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