[R] Masked from package
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Thu Sep 25 17:46:55 CEST 2014
No, masking does not imply inheritance. Simply that "foo" now refers to a different function, so you have to use "oldpkg::foo" if you want to get at the old function from your normal working environment.
Note that packages that call "foo" will continue to find the versions they intended to call if they are constructed correctly.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
On September 25, 2014 8:19:14 AM PDT, Rich Shepard <rshepard at appl-ecosys.com> wrote:
>On Thu, 25 Sep 2014, MacQueen, Don wrote:
>
>> And to answer the “What do I read ...?” question
>> help.search('masked’)
>> returns quite a few things on my system, and the one you want is
>
>Don, et al.:
>
> Further research led me to re-read the beginning of "Analyzing
>Compositional Data with R" where the authors describe the masking as
>analgous (my interpretation) to instatiating an object as in Python or
>wxPython. With the package compositions, there are functions with the
>same
>name as functions in other packages. The compositions package extends
>functionality and implies that the parent functionality is inherited,
>not
>replaced.
>
> Perhaps this is the norm for all R packages.
>
>Thanks very much to all,
>
>Rich
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list