From mtmorgan at fhcrc.org  Mon Jul  2 22:51:30 2012
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Mon, 02 Jul 2012 22:51:30 +0200
Subject: [Rd] Dependency problem for "hasArg"
In-Reply-To: <1341246198971-4635158.post@n4.nabble.com>
References: <4FF1B8E3.4050501@jrc.ec.europa.eu>
	<1341246198971-4635158.post@n4.nabble.com>
Message-ID: <4FF209D2.3010400@fhcrc.org>

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.

Martin

>
> 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 at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


-- 
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



[Rd] Dependency problem for "hasArg"
Martin Morgan