[Bioc-devel] Naming and namespace collisions for commonly-named functions

Vincent Carey stvjc at channing.harvard.edu
Tue Jan 24 16:22:56 CET 2017


to me, double colon is preferable to prefix.  i am not very clear on the
downside.

"filter" is a good example, so is "metadata", which has a very peculiar
definition
in rmarkdown.

On Tue, Jan 24, 2017 at 10:19 AM, Sean Davis <seandavi at gmail.com> wrote:

> Hi, all.
>
> I am curious about what folks think about naming conventions for commonly
> named functions, some of which are so common that even establishing a
> generic would be difficult because of different use cases.  Examples
> include things like “filter”.  One possibility is to use the Google Sheets
> approach and prefix function names with ‘gs_’.  The alternative approach is
> to use the more common names and rely on folks to disambiguate if more than
> one package that shares the name is loaded.  The former has the advantage
> of being more novice-friendly, but the latter is likely to sit nicely with
> developers and regular R/Bioc users since the functions will be commonly
> used.  Any thoughts one way or the other?
>
> Thanks,
> Sean
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel

	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list