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.

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to