Re: [Rd] Dependency problem for "hasArg"

From: Martin Morgan <>
Date: Mon, 02 Jul 2012 22:51:30 +0200

On 07/02/2012 06:23 PM, Charlie Friedemann wrote:
> 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.

But I think the idea will be to import(methods) in HydroGOF, since the package requires these imports to function properly, and import'ing will mean that hasArg does not have to be found on the (user-controlled) search path.


> 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:
> Sent from the R devel mailing list archive at
> ______________________________________________
> mailing list

Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793

______________________________________________ mailing list
Received on Mon 02 Jul 2012 - 20:54:14 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 03 Jul 2012 - 07:20:31 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive