[Rd] Functions with the same name: best practices

From: hadley wickham <h.wickham_at_gmail.com>
Date: Tue 23 Aug 2005 - 02:58:12 GMT


Ok, here's another best practices question - let's say I'm writing a package and I want to use a function name that is already claimed by a function in the base R packages. For the sake of argument, let's pretend this function is for profiling the performance of a function (like Rprof for example), and so an obvious name that comes to mind is profile. This, of course, clashes with the built in profile for "investigating behavior of objective function near the solution represented by fitted."

A little thinking and a quick survey of other packages reveal some possible solutions:

What would you suggest?

Thanks again,

Hadley



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Aug 23 13:01:56 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:18 GMT