Goal: I downloaded an R-package "ABC" from CRAN and would like to achieve two things:
- edit an existing function
ex_fctof that R-package. - add a new function
nw_fctto that R-package.
and these adjustments shall be permanent.
Situation: There are good sources that explain the first aspect on how to edit/change/overwrite an existing function of an R-package here, but trying to follow this approach seems not to work for adding new functions to a package.
Question: Hence, I wish to add the function nw_fct as a hidden function in that package so that it can be called via ABC:::nw_fct. How can this be done? Is there a way to simultaneously address both aspects?