From cfriedem at gmail.com  Mon Jul  2 18:23:18 2012
From: cfriedem at gmail.com (Charlie Friedemann)
Date: Mon, 2 Jul 2012 09:23:18 -0700 (PDT)
Subject: [Rd] Dependency problem for "hasArg"
In-Reply-To: <4FF1B8E3.4050501@jrc.ec.europa.eu>
References: <4FF1B8E3.4050501@jrc.ec.europa.eu>
Message-ID: <1341246198971-4635158.post@n4.nabble.com>

The error message you are getting makes it rather clear what the problem is. 
R is unable to find the function 'hasArg'.  As the hasArg function is part
of the package 'methods', a solution would be to put require(methods) at the
beginning of your script.

For whatever reason, loading R via Rscript does not load the base package
"methods" whereas loading the R console does. I'm not entirely sure why this
is the case, and I'm sure someone who knows more about the differences
between the two could chime in here.

--
View this message in context: http://r.789695.n4.nabble.com/Dependency-problem-for-hasArg-tp4635147p4635158.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] Dependency problem for "hasArg"
Charlie Friedemann