[Rd] Dependency problem for "hasArg"

Martin Morgan mtmorgan at fhcrc.org
Mon Jul 2 22:51:30 CEST 2012


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



More information about the R-devel mailing list