Prof Brian Ripley <ripley <at> stats.ox.ac.uk> writes:

> 
> On Wed, 3 May 2006, Johannes Graumann wrote:
> 
> > What's the canonical way of patching something like this in R? Redefining 
> > the
> > function at the start of your script?
> 
> There are namespace issues, so the canonical way is to change the sources 
> and re-build R.  (Anthing which imports the graphics namespace will get 
> the system version, not yours.)
> 

  Or (to avoid re-building R) perhaps you could just
make a copy of the function as mypie() and edit it?

mypie <- pie
fix(mypie)  ## make edits
dump("mypie",file="mypie.R")
source("mypie.R") 

  ??

  Ben

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to